Package org.bukkit.block.spawner
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.
- 
Constructor SummaryConstructorsConstructorDescriptionEquipment(LootTable equipmentLootTable, Map<EquipmentSlot, Float> dropChances) 
- 
Method SummaryModifier and TypeMethodDescriptionGets a mutable map of the drop chances for each slot of the entity.Gets the loot table for the entity.voidsetEquipmentLootTable(LootTable table) Set the loot table for the entity.
- 
Constructor Details- 
Equipmentpublic Equipment(@NotNull LootTable equipmentLootTable, @NotNull Map<EquipmentSlot, Float> dropChances) 
 
- 
- 
Method Details- 
setEquipmentLootTableSet the loot table for the entity.
 To remove a loot table use null.- Parameters:
- table- this- Mobwill have.
 
- 
getEquipmentLootTableGets the loot table for the entity.
 If an entity does not have a loot table, this will return null, NOT an empty loot table.- Returns:
- the loot table for this entity.
 
- 
getDropChancesGets 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
 
 
-