Interface EntityType

    • Method Detail

      • getId

        int getId()
        Returns the entity id.
        Returns:
        entity id
      • getParent

        @Nullable EntityType getParent()
        Returns the parent entity type if present.
        Returns:
        parent entity type if present
      • name

        java.lang.String name()
        Returns the entity type name, not necessarily matching the Vanilla type name.
        Returns:
        entity type name
      • is

        default boolean is​(EntityType... types)
      • isOrHasParent

        default boolean isOrHasParent​(EntityType type)
        Returns whether the current type is equal to the given type, or has it as a parent type.
        Parameters:
        type - entity type to check against
        Returns:
        true if the current type is equal to the given type, or has it as a parent type