类 SpawnerEntry.Equipment
java.lang.Object
org.bukkit.block.spawner.SpawnerEntry.Equipment
- 封闭类:
- SpawnerEntry
Represents the equipment loot table applied to a spawned entity.
-
构造器概要
-
方法概要
修饰符和类型方法说明Gets a mutable map of the drop chances for each slot of the entity.Gets the loot table for the entity.void
Set the loot table for the entity.
-
构造器详细资料
-
Equipment
-
-
方法详细资料
-
setEquipmentLootTable
Set the loot table for the entity.
To remove a loot table use null. Do not useLootTables.EMPTY
to clear a LootTable.- 参数:
table
- thisMob
will have.
-
getEquipmentLootTable
Gets the loot table for the entity.
If an entity does not have a loot table, this will return null, NOT an empty loot table.- 返回:
- 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.- 返回:
- mutable map of drop chances
-