Interface GeyserEntityDefinition
- All Known Subinterfaces:
CustomEntityDefinition
public interface GeyserEntityDefinition
Represents a Bedrock entity definition registered in the
GeyserDefineEntitiesEvent.- Since:
- 2.11.0
-
Method Summary
Modifier and TypeMethodDescriptionThis entity's identifier as it's known to Bedrock clients and used in resource packs.static GeyserEntityDefinitionof(Identifier identifier) Retrieves a registeredGeyserEntityDefinitionby its Bedrock entity type identifier, or returns a new unregistered definition if none is found.Returns the entity properties registered in theGeyserDefineEntityPropertiesEventfor this entity type.booleanReturns whether this definition is currently registered viaGeyserDefineEntitiesEvent.booleanvanilla()
-
Method Details
-
identifier
Identifier identifier()This entity's identifier as it's known to Bedrock clients and used in resource packs. See the official docs for further information- Returns:
- the Bedrock entity identifier
- Since:
- 2.11.0
-
properties
List<GeyserEntityProperty<?>> properties()Returns the entity properties registered in theGeyserDefineEntityPropertiesEventfor this entity type.- Returns:
- the entity properties registered for this entity type
- Since:
- 2.11.0
- See Also:
-
vanilla
boolean vanilla()- Returns:
- whether this entity exists in the vanilla base game
- Since:
- 2.11.0
-
registered
boolean registered()Returns whether this definition is currently registered viaGeyserDefineEntitiesEvent. Unregistered definitions cannot be sent to Bedrock clients!- Returns:
- whether this definition is registered
- Since:
- 2.11.0
-
of
Retrieves a registeredGeyserEntityDefinitionby its Bedrock entity type identifier, or returns a new unregistered definition if none is found.- Parameters:
identifier- the Bedrock entity identifier- Returns:
- the GeyserEntityDefinition for the given identifier
- Since:
- 2.11.0
-