Interface GeyserEntityDefinition

All Known Subinterfaces:
CustomEntityDefinition

public interface GeyserEntityDefinition
Represents a Bedrock entity definition registered in the GeyserDefineEntitiesEvent
Since:
2.11.0
  • Method Details

    • identifier

      Identifier identifier()
      Returns:
      the Bedrock entity identifier
      Since:
      2.11.0
    • properties

      List<GeyserEntityProperty<?>> properties()
      Returns the entity properties registered in the GeyserDefineEntityPropertiesEvent for 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 has been registered
      Since:
      2.11.0
    • of

      static GeyserEntityDefinition of(Identifier identifier)
      Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.
      Parameters:
      identifier - the Bedrock entity identifier
      Returns:
      the GeyserEntityDefinition