Package net.minestom.server.registry
Class RegistryData.MaterialEntry
java.lang.Object
net.minestom.server.registry.RegistryData.MaterialEntry
- All Implemented Interfaces:
RegistryData.Entry
- Enclosing class:
RegistryData
-
Method Summary
Modifier and TypeMethodDescription@Nullable Blockblock()@Nullable EquipmentSlotintid()booleanisArmor()@NotNull net.kyori.adventure.key.Keykey()@NotNull DataComponentMap@Nullable EntityTypeGets the entity type this item can spawn.@NotNull String
-
Method Details
-
key
@NotNull public @NotNull net.kyori.adventure.key.Key key() -
id
public int id() -
translationKey
-
block
-
prototype
-
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
-