public static class LootPool.Builder extends Object implements LootFunctionConsumingBuilder<LootPool.Builder>, LootConditionConsumingBuilder<LootPool.Builder>
Modifier and Type | Field and Description |
---|---|
private UniformLootTableRange |
bonusRollsRange |
private List<LootCondition> |
conditions |
private List<LootPoolEntry> |
entries |
private List<LootFunction> |
functions |
private LootTableRange |
rolls |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LootPool.Builder |
apply(LootFunction.Builder builder) |
LootPool |
build() |
LootPool.Builder |
conditionally(LootCondition.Builder builder) |
LootPool.Builder |
getThis() |
LootPool.Builder |
rolls(LootTableRange rolls) |
LootPool.Builder |
with(LootPoolEntry.Builder<?> entry) |
private final List<LootPoolEntry> entries
private final List<LootCondition> conditions
private final List<LootFunction> functions
private LootTableRange rolls
private UniformLootTableRange bonusRollsRange
public LootPool.Builder rolls(LootTableRange rolls)
public LootPool.Builder getThis()
getThis
in interface LootConditionConsumingBuilder<LootPool.Builder>
getThis
in interface LootFunctionConsumingBuilder<LootPool.Builder>
public LootPool.Builder with(LootPoolEntry.Builder<?> entry)
public LootPool.Builder conditionally(LootCondition.Builder builder)
conditionally
in interface LootConditionConsumingBuilder<LootPool.Builder>
public LootPool.Builder apply(LootFunction.Builder builder)
apply
in interface LootFunctionConsumingBuilder<LootPool.Builder>
public LootPool build()