public class LootPool extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LootPool.Builder |
static class |
LootPool.Serializer |
Modifier and Type | Field and Description |
---|---|
private UniformLootTableRange |
bonusRolls |
private LootCondition[] |
conditions |
private LootPoolEntry[] |
entries |
private LootFunction[] |
functions |
private BiFunction<ItemStack,LootContext,ItemStack> |
javaFunctions |
private Predicate<LootContext> |
predicate |
private LootTableRange |
rolls |
Modifier | Constructor and Description |
---|---|
private |
LootPool(LootPoolEntry[] entries,
LootCondition[] conditions,
LootFunction[] functions,
LootTableRange rolls,
UniformLootTableRange bonusRolls) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneratedLoot(Consumer<ItemStack> lootConsumer,
LootContext context) |
static LootPool.Builder |
builder() |
private void |
supplyOnce(Consumer<ItemStack> lootConsumer,
LootContext context) |
void |
validate(LootTableReporter lootTableReporter) |
private final LootPoolEntry[] entries
private final LootCondition[] conditions
private final Predicate<LootContext> predicate
private final LootFunction[] functions
private final BiFunction<ItemStack,LootContext,ItemStack> javaFunctions
private final LootTableRange rolls
private final UniformLootTableRange bonusRolls
private LootPool(LootPoolEntry[] entries, LootCondition[] conditions, LootFunction[] functions, LootTableRange rolls, UniformLootTableRange bonusRolls)
private void supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)
public void addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
public void validate(LootTableReporter lootTableReporter)
public static LootPool.Builder builder()