| Package | Description | 
|---|---|
| org.bukkit.event.world | |
| org.bukkit.loot | Classes relevant to loot table manipulation and generation. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| LootContext | LootGenerateEvent. getLootContext() | Get the loot context used to provide context to the loot table's loot
 generation. | 
| Constructor | Description | 
|---|---|
| LootGenerateEvent(World world,
                 Entity entity,
                 InventoryHolder inventoryHolder,
                 LootTable lootTable,
                 LootContext lootContext,
                 List<ItemStack> items,
                 boolean plugin) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| LootContext | LootContext.Builder. build() | Create a new  LootContextinstance using the supplied
 parameters. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | LootTable. fillInventory(Inventory inventory,
             Random random,
             LootContext context) | Attempt to fill an inventory with this LootTable's loot. | 
| Collection<ItemStack> | LootTable. populateLoot(Random random,
            LootContext context) | Returns a mutable list of loot generated by this LootTable. | 
Copyright © 2021. All rights reserved.