Interface JavaEntityType


@Experimental public interface JavaEntityType
Represents a Java edition entity type.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the default Bedrock entity definition which is associated with this Minecraft: Java Edition entity type.
    float
    This entity type's default height, not respective of pose-adjusted height.
    Each entity type on Java edition has an identifier, such as "minecraft:pig" that uniquely identifies it.
    default boolean
    is(Identifier javaIdentifier)
    Compares two entity identifiers.
    boolean
    Indicates whether this entity type exists in the Minecraft: Java Edition base game, or whether it is a custom entity.
    float
    This entity type's default width, not respective of pose-adjusted width.
  • Method Details

    • identifier

      @Experimental Identifier identifier()
      Each entity type on Java edition has an identifier, such as "minecraft:pig" that uniquely identifies it. Modded entities cannot be in the minecraft namespace!
      Returns:
      the Java identifier of the entity type
      Since:
      2.11.0
    • vanilla

      @Experimental boolean vanilla()
      Indicates whether this entity type exists in the Minecraft: Java Edition base game, or whether it is a custom entity. Note: As of API 2.11.0, this would always be true!
      Returns:
      whether this entity exists in the vanilla base game
      Since:
      2.11.0
    • width

      @Experimental float width()
      This entity type's default width, not respective of pose-adjusted width.
      Returns:
      the default width of the Java entity type
      Since:
      2.11.0
    • height

      @Experimental float height()
      This entity type's default height, not respective of pose-adjusted height.
      Returns:
      the default height of the Java entity type
      Since:
      2.11.0
    • is

      @Experimental default boolean is(Identifier javaIdentifier)
      Compares two entity identifiers.
      Parameters:
      javaIdentifier - the other entity identifier
      Returns:
      true if the entity identifier is the same
      Since:
      2.11.0
    • defaultBedrockDefinition

      @Experimental @Nullable GeyserEntityDefinition defaultBedrockDefinition()
      Gets the default Bedrock entity definition which is associated with this Minecraft: Java Edition entity type.
      Returns:
      the default Bedrock entity definition
      Since:
      2.11.0