Skip to content

[1.12.2] Incorrect comment on IEntityDefinition's ID snippet #588

@roidrole

Description

@roidrole

Snippet from wiki (IEntityDefinition) :

//returns "net.minecraft.entity.passive.EntitySheep"
<entity:minecraft:sheep>.id;

Relevant called code (according to IEntityDefinition and MCEntityDefinition, in order) :

    @ZenGetter("id")
    String getId();
    @Override
    public String getId() {
        return entityEntry.getRegistryName() != null ? entityEntry.getRegistryName().toString() : "no_registry_name";
    }

The registryName for EntitySheep is minecraft:sheep, as you can see in EntityList.init() (id 91)

The comment should therefore be edited to //returns "minecraft:sheep"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions