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 Blockblock()custom()@Nullable net.minestom.server.entity.EquipmentSlotintid()booleanisArmor()@NotNull net.minestom.server.utils.NamespaceID@NotNull DataComponentMap@Nullable EntityTypeGets the entity type this item can spawn.@NotNull String
-
Method Details
-
namespace
@NotNull public @NotNull net.minestom.server.utils.NamespaceID namespace() -
id
public int id() -
translationKey
-
block
-
prototype
-
isArmor
public boolean isArmor() -
equipmentSlot
@Nullable public @Nullable net.minestom.server.entity.EquipmentSlot 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:
customin interfaceRegistry.Entry
-