Interface CustomEntityDefinition
- All Superinterfaces:
GeyserEntityDefinition
Represents a Bedrock entity definition for a custom entity.
These cannot be in the
minecraft namespace, and have to be manually
spawned using either the ServerSpawnEntityEvent or ServerAttachParrotsEvent.- Since:
- 2.11.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomEntityDefinitionCreates or retrieves aCustomEntityDefinitionby the Bedrock entity type identifier.static CustomEntityDefinitionof(Identifier identifier) Creates or retrieves a custom entity definition by the Bedrock entity type identifier.default booleanvanilla()Methods inherited from interface org.geysermc.geyser.api.entity.definition.GeyserEntityDefinition
identifier, properties, registered
-
Method Details
-
vanilla
default boolean vanilla()- Specified by:
vanillain interfaceGeyserEntityDefinition- Returns:
- whether this entity exists in the vanilla base game
-
of
Creates or retrieves a custom entity definition by the Bedrock entity type identifier.- Parameters:
identifier- the Bedrock entity identifier- Returns:
- customEntityDefinition
- Since:
- 2.11.0
-
of
Creates or retrieves aCustomEntityDefinitionby the Bedrock entity type identifier. The identifier must not use theminecraftnamespace.- Parameters:
identifier- the Bedrock entity identifier, innamespace:pathformat- Returns:
- the custom entity definition
- Since:
- 2.11.0
-