Interface JavaEntityType
@Experimental
public interface JavaEntityType
Represents a Java edition entity type
- Since:
- 2.11.0
-
Method Summary
Modifier and TypeMethodDescription@Nullable GeyserEntityDefinitionGets the default Bedrock entity definition which is associated with this Minecraft: Java Edition entity type.floatheight()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 booleanis(Identifier javaIdentifier) Compares two entity identifiers.booleanvanilla()Indicates whether this entity type exists in the Minecraft: Java Edition base game, or whether it is a custom entity.floatwidth()This entity type's default width, not respective of pose-adjusted width.
-
Method Details
-
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
Compares two entity identifiers.- Parameters:
javaIdentifier- the other entity identifier- Returns:
- true if the entity identifier is the same
- Since:
- 2.11.0
-
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
-