Interface GeyserEntityDefinition

All Known Subinterfaces:
CustomEntityDefinition

public interface GeyserEntityDefinition
Represents a Bedrock entity definition. Custom Bedrock entity definitions must be registered in the GeyserDefineEntitiesEvent before usage!
  • Method Details

    • identifier

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

      List<GeyserEntityProperty<?>> properties()
      Returns:
      the properties registered for this entity type
    • vanilla

      boolean vanilla()
      Returns:
      whether this entity is a vanilla entity
    • registered

      boolean registered()
      Returns:
      whether this definition has been registered
    • 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