Interface CustomEntityDefinition
- All Superinterfaces:
GeyserEntityDefinition
Represents a custom entity definition for a non-vanilla, custom Bedrock entity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull CustomEntityDefinitionCreates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.static @NonNull CustomEntityDefinitionof(@NonNull Identifier identifier) Creates or retrieves a GeyserEntityDefinition 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 is a vanilla entity
-
of
Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.- Parameters:
identifier- the Bedrock entity identifier- Returns:
- the CustomEntityDefinition
-
of
Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.- Parameters:
identifier- the Bedrock entity identifier, in string format- Returns:
- the CustomEntityDefinition
-