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 SummaryModifier and TypeMethodDescription@Nullable Blockblock()custom()@Nullable EquipmentSlotintid()booleanisArmor()booleanisFood()intint@NotNull NamespaceID@Nullable EntityTypeGets the entity type this item can spawn.
- 
Method Details- 
namespace
- 
idpublic int id()
- 
translationKey
- 
maxStackSizepublic int maxStackSize()
- 
maxDamagepublic int maxDamage()
- 
isFoodpublic boolean isFood()
- 
block
- 
isArmorpublic boolean isArmor()
- 
equipmentSlot
- 
spawnEntityTypeGets 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:
- customin interface- Registry.Entry
 
 
-