Interface JavaEntityType


public interface JavaEntityType
Represents a Java edition entity type
  • Method Details

    • identifier

      Identifier identifier()
      Returns:
      the Java identifier of the type
    • vanilla

      boolean vanilla()
      Returns:
      whether this entity exists in the vanilla base game
    • width

      float width()
      Returns:
      the default width of the Java entity type
    • height

      float height()
      Returns:
      the default height of the Java entity type
    • is

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

      @Nullable GeyserEntityDefinition defaultBedrockDefinition()
      Gets the default Bedrock entity definition, if available, that is associated with this Minecraft: Java Edition entity type.
      Returns:
      the default Bedrock entity definition