Class Registry.MaterialEntry

java.lang.Object
net.minestom.server.registry.Registry.MaterialEntry
All Implemented Interfaces:
Registry.Entry
Enclosing class:
Registry

public static final class Registry.MaterialEntry extends Object implements Registry.Entry
  • Method Details

    • namespace

      @NotNull public @NotNull NamespaceID namespace()
    • id

      public int id()
    • translationKey

      @NotNull public @NotNull String translationKey()
    • block

      @Nullable public @Nullable Block block()
    • prototype

      @NotNull public @NotNull DataComponentMap prototype()
    • isArmor

      public boolean isArmor()
    • equipmentSlot

      @Nullable public @Nullable EquipmentSlot equipmentSlot()
    • spawnEntityType

      @Nullable public @Nullable EntityType spawnEntityType()
      Gets the entity type this item can spawn. Only present for spawn eggs (e.g. wolf spawn egg, skeleton spawn egg)
      Returns:
      The entity type it can spawn, or null if it is not a spawn egg
    • custom

      public Registry.Properties custom()
      Specified by:
      custom in interface Registry.Entry