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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a mutable map of the drop chances for each slot of the entity.Gets the loot table for the spawned entity's equipment.void
Set the loot table for the spawned entity's equipment slots.
-
Constructor Details
-
Equipment
-
-
Method Details
-
setEquipmentLootTable
Set the loot table for the spawned entity's equipment slots.
To remove a loot table useLootTables.EMPTY
.- Parameters:
table
- thisMob
will have.
-
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.
-
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
-