Interface JavaEntityType
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, if available, that is associated with this Minecraft: Java Edition entity type.floatheight()default booleanis(Identifier javaIdentifier) Compares two entity identifiers.booleanvanilla()floatwidth()
-
Method Details
-
identifier
Identifier identifier()- Returns:
- the Java identifier of the entity type
- Since:
- 2.11.0
-
vanilla
boolean vanilla()- Returns:
- whether this entity exists in the vanilla base game
- Since:
- 2.11.0
-
width
float width()- Returns:
- the default width of the Java entity type
- Since:
- 2.11.0
-
height
float 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
@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
- Since:
- 2.11.0
-