Interface GeyserEntityDefinition
- All Known Subinterfaces:
CustomEntityDefinition
@Experimental
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()Indicates whether this entity exists in Minecraft: Bedrock Edition, or whether it is a custom entity.
-
Method Details
-
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
Returns the entity properties registered in theGeyserDefineEntityPropertiesEventfor this entity type.- Returns:
- an unmodifiable list containing entity properties registered for this entity type
- Since:
- 2.11.0
- See Also:
-
vanilla
@Experimental boolean vanilla()Indicates whether this entity exists in Minecraft: Bedrock Edition, or whether it is a custom entity.- Returns:
- whether this entity exists in the vanilla base game
- Since:
- 2.11.0
-
registered
@Experimental 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
-