Interface JavaEntityType

All Known Subinterfaces:
CustomJavaEntityType

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

    • identifier

      @NonNull Identifier identifier()
      Returns:
      the Java identifier of the type
    • javaId

      int javaId()
      Returns:
      the numeric Java entity type id
    • vanilla

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

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

      float height()
      Returns:
      the height of the Java entity
    • 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