Interface CustomEntityDefinition

All Superinterfaces:
GeyserEntityDefinition

@Experimental public interface CustomEntityDefinition extends 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 Details

    • vanilla

      @Experimental default boolean vanilla()
      Indicates whether this entity exists in Minecraft: Bedrock Edition, or whether it is a custom entity.
      Specified by:
      vanilla in interface GeyserEntityDefinition
      Returns:
      whether this entity exists in the vanilla base game
    • of

      @Experimental static CustomEntityDefinition of(Identifier identifier)
      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

      @Experimental static CustomEntityDefinition of(String identifier)
      Creates or retrieves a CustomEntityDefinition by the Bedrock entity type identifier. The identifier must not use the minecraft namespace.
      Parameters:
      identifier - the Bedrock entity identifier, in namespace:path format
      Returns:
      the custom entity definition
      Since:
      2.11.0