类的使用
org.bukkit.loot.LootContext
-
org.bukkit.event.world中LootContext的使用
限定符构造器说明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中LootContext的使用
修饰符和类型方法说明LootContext.Builder.build()
Create a newLootContext
instance using the supplied parameters.修饰符和类型方法说明void
LootTable.fillInventory
(@NotNull Inventory inventory, @Nullable Random random, @NotNull LootContext context) Attempt to fill an inventory with this LootTable's loot.LootTable.populateLoot
(@Nullable Random random, @NotNull LootContext context) Returns a mutable list of loot generated by this LootTable.