Package net.minestom.server.registry
Class Registry.MaterialEntry
java.lang.Object
net.minestom.server.registry.Registry.MaterialEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
-
Method Summary
Modifier and TypeMethodDescription@Nullable Block
block()
custom()
@Nullable EquipmentSlot
int
id()
boolean
isArmor()
boolean
isFood()
int
int
@NotNull NamespaceID
@Nullable EntityType
Gets the entity type this item can spawn.
-
Method Details
-
namespace
-
id
public int id() -
translationKey
-
maxStackSize
public int maxStackSize() -
maxDamage
public int maxDamage() -
isFood
public boolean isFood() -
block
-
isArmor
public boolean isArmor() -
equipmentSlot
-
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
- Specified by:
custom
in interfaceRegistry.Entry
-