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