Keyed
public interface LootTable extends Keyed
Modifier and Type | Method | Description |
---|---|---|
void |
fillInventory(Inventory inventory,
java.util.Random random,
LootContext context) |
Attempt to fill an inventory with this LootTable's loot.
|
java.util.Collection<ItemStack> |
populateLoot(java.util.Random random,
LootContext context) |
Returns a mutable list of loot generated by this LootTable.
|
java.util.Collection<ItemStack> populateLoot(java.util.Random random, LootContext context)
random
- the random instance to use to generate lootcontext
- context within to populate lootvoid fillInventory(Inventory inventory, java.util.Random random, LootContext context)
inventory
- the inventory to fillrandom
- the random instance to use to generate lootcontext
- context within to populate lootCopyright © 2018. All rights reserved.