Interface GeyserEntityDefinition

All Known Subinterfaces:
CustomEntityDefinition

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

    • identifier

      @Experimental Identifier identifier()
      This entity's identifier as it's known to Bedrock clients and used in resource packs. See the official docs for further information
      Returns:
      the Bedrock entity identifier
      Since:
      2.11.0
    • properties

      @Experimental List<GeyserEntityProperty<?>> properties()
      Returns the entity properties registered in the GeyserDefineEntityPropertiesEvent for this entity type.
      Returns:
      an unmodifiable list containing entity properties registered for this entity type
      Since:
      2.11.0
      See Also:
    • vanilla

      @Experimental boolean vanilla()
      Indicates whether this entity exists in Minecraft: Bedrock Edition, or whether it is a custom entity.
      Returns:
      whether this entity exists in the vanilla base game
      Since:
      2.11.0
    • registered

      @Experimental boolean registered()
      Returns whether this definition is currently registered via GeyserDefineEntitiesEvent. Unregistered definitions cannot be sent to Bedrock clients!
      Returns:
      whether this definition is registered
      Since:
      2.11.0
    • of

      @Experimental static GeyserEntityDefinition of(Identifier identifier)
      Retrieves a registered GeyserEntityDefinition by its Bedrock entity type identifier, or returns a new unregistered definition if none is found.
      Parameters:
      identifier - the Bedrock entity identifier
      Returns:
      the GeyserEntityDefinition for the given identifier
      Since:
      2.11.0