Class CustomBedrockEntityDefinition

java.lang.Object
org.geysermc.geyser.entity.BedrockEntityDefinition
org.geysermc.geyser.entity.CustomBedrockEntityDefinition
All Implemented Interfaces:
org.geysermc.geyser.api.entity.custom.CustomEntityDefinition, org.geysermc.geyser.api.entity.definition.GeyserEntityDefinition

public final class CustomBedrockEntityDefinition extends BedrockEntityDefinition implements org.geysermc.geyser.api.entity.custom.CustomEntityDefinition
  • Constructor Details

    • CustomBedrockEntityDefinition

      public CustomBedrockEntityDefinition(@NonNull org.geysermc.geyser.api.util.Identifier identifier, @NonNull GeyserEntityProperties registeredProperties)
  • Method Details

    • getOrCreate

      public static CustomBedrockEntityDefinition getOrCreate(@NonNull org.geysermc.geyser.api.util.Identifier identifier)
      Retrieves an existing registered entity definition by identifier, or creates a new unregistered CustomBedrockEntityDefinition for the given identifier. Custom identifiers must not use the "minecraft" namespace.
    • vanilla

      public boolean vanilla()
      Specified by:
      vanilla in interface org.geysermc.geyser.api.entity.custom.CustomEntityDefinition
      Specified by:
      vanilla in interface org.geysermc.geyser.api.entity.definition.GeyserEntityDefinition
      Overrides:
      vanilla in class BedrockEntityDefinition
    • toString

      public String toString()
      Overrides:
      toString in class BedrockEntityDefinition