Uses of Class
org.bukkit.loot.LootContext
Package
Description
Classes relevant to loot table manipulation and generation.
-
Uses of LootContext in org.bukkit.event.world
Modifier and TypeMethodDescriptionLootGenerateEvent.getLootContext()
Get the loot context used to provide context to the loot table's loot generation.ModifierConstructorDescriptionLootGenerateEvent(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin)
-
Uses of LootContext in org.bukkit.loot
Modifier and TypeMethodDescriptionLootContext.Builder.build()
Create a newLootContext
instance using the supplied parameters.Modifier and TypeMethodDescriptionvoid
LootTable.fillInventory(@NotNull Inventory inventory, @NotNull Random random, @NotNull LootContext context)
Attempt to fill an inventory with this LootTable's loot.LootTable.populateLoot(@NotNull Random random, @NotNull LootContext context)
Returns a mutable list of loot generated by this LootTable.