接口的使用
org.bukkit.loot.LootTable
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes relevant to mob spawners.
与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表).
Classes related to entity spawners.
-
org.bukkit中LootTable的使用
修饰符和类型方法说明Bukkit.getLootTable
(@NotNull NamespacedKey key) 获取指定的战利品表
.Server.getLootTable
(@NotNull NamespacedKey key) 获取指定的战利品表
. -
org.bukkit.block.spawner中LootTable的使用
修饰符和类型方法说明void
SpawnerEntry.Equipment.setEquipmentLootTable
(@NotNull LootTable table) Set the loot table for the entity. -
org.bukkit.event.world中LootTable的使用
限定符构造器说明LootGenerateEvent
(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin) -
org.bukkit.loot中LootTable的使用
修饰符和类型方法说明Lootable.getLootTable()
Gets the Loot Table attached to this block or entity.LootTables.getLootTable()
Get theLootTable
corresponding to this constant.修饰符和类型方法说明void
Lootable.setLootTable
(@Nullable LootTable table) Set the loot table for a container or entity. -
org.bukkit.spawner中LootTable的使用
修饰符和类型方法说明TrialSpawnerConfiguration.getPossibleRewards()
Gets a list ofLootTable
s this spawner can pick a reward from as well as their associated weight to be chosen.修饰符和类型方法说明void
TrialSpawnerConfiguration.addPossibleReward
(@NotNull LootTable table, int weight) Add aLootTable
to the list of tables this spawner can pick a reward from with a given weight.void
TrialSpawnerConfiguration.removePossibleReward
(@NotNull LootTable table) Removes the providedLootTable
from the list of tables this spawner can pick a reward from.