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

      public String translationKey()
    • maxStackSize

      public int maxStackSize()
    • maxDamage

      public int maxDamage()
    • isFood

      public boolean isFood()
    • block

      @Nullable public @Nullable Block block()
    • 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