Interface CustomEntityDefinition

All Superinterfaces:
GeyserEntityDefinition

public interface CustomEntityDefinition extends GeyserEntityDefinition
Represents a custom entity definition for a non-vanilla, custom Bedrock entity.
  • Method Details

    • vanilla

      default boolean vanilla()
      Specified by:
      vanilla in interface GeyserEntityDefinition
      Returns:
      whether this entity is a vanilla entity
    • of

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

      static CustomEntityDefinition of(String identifier)
      Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.
      Parameters:
      identifier - the Bedrock entity identifier, in string format
      Returns:
      the CustomEntityDefinition