Class SpawnerEntry.Equipment
java.lang.Object
org.bukkit.block.spawner.SpawnerEntry.Equipment
- Enclosing class:
SpawnerEntry
Represents the equipment loot table applied to a spawned entity.
- Since:
- 1.20.6
-
Constructor Summary
ConstructorsConstructorDescriptionEquipment(@NotNull LootTable equipmentLootTable, @NotNull Map<EquipmentSlot, Float> dropChances) -
Method Summary
Modifier and TypeMethodDescription@NotNull Map<EquipmentSlot, Float> Gets a mutable map of the drop chances for each slot of the entity.@NotNull LootTableGets the loot table for the spawned entity's equipment.voidsetEquipmentLootTable(@NotNull LootTable table) Set the loot table for the spawned entity's equipment slots.
-
Constructor Details
-
Equipment
public Equipment(@NotNull @NotNull LootTable equipmentLootTable, @NotNull @NotNull Map<EquipmentSlot, Float> dropChances) - Since:
- 1.20.6
-
-
Method Details
-
setEquipmentLootTable
-
getEquipmentLootTable
Gets the loot table for the spawned entity's equipment.
If an entity does not have a loot table, this will return an empty loot table.- Returns:
- the loot table for this entity.
- Since:
- 1.20.6
-
getDropChances
Gets a mutable map of the drop chances for each slot of the entity. If non-null, the entity's drop chances will be overridden with the given value.- Returns:
- mutable map of drop chances
- Since:
- 1.20.6
-