Interface EntityType

All Superinterfaces:
net.kyori.adventure.key.Keyed, net.minestom.server.registry.ProtocolObject, net.minestom.server.registry.StaticProtocolObject

public sealed interface EntityType extends net.minestom.server.registry.StaticProtocolObject
  • Field Details

  • Method Details

    • registry

      @Contract(pure=true) @NotNull Registry.EntityEntry registry()
      Returns the entity registry.
      Specified by:
      registry in interface net.minestom.server.registry.ProtocolObject
      Returns:
      the entity registry
    • namespace

      @NotNull default @NotNull net.minestom.server.utils.NamespaceID namespace()
      Specified by:
      namespace in interface net.minestom.server.registry.StaticProtocolObject
    • id

      default int id()
      Specified by:
      id in interface net.minestom.server.registry.StaticProtocolObject
    • width

      default double width()
    • height

      default double height()
    • values

      @NotNull static @NotNull Collection<@NotNull EntityType> values()
    • fromNamespaceId

      static EntityType fromNamespaceId(@NotNull @NotNull String namespaceID)
    • fromNamespaceId

      static EntityType fromNamespaceId(@NotNull @NotNull net.minestom.server.utils.NamespaceID namespaceID)
    • fromId

      @Nullable static @Nullable EntityType fromId(int id)