public static class LootTable.Builder extends Object implements LootFunctionConsumingBuilder<LootTable.Builder>
Modifier and Type | Field and Description |
---|---|
private List<LootFunction> |
functions |
private List<LootPool> |
pools |
private LootContextType |
type |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LootTable.Builder |
apply(LootFunction.Builder builder) |
LootTable |
build() |
LootTable.Builder |
getThis() |
LootTable.Builder |
pool(LootPool.Builder poolBuilder) |
LootTable.Builder |
type(LootContextType context) |
private final List<LootFunction> functions
private LootContextType type
public LootTable.Builder pool(LootPool.Builder poolBuilder)
public LootTable.Builder type(LootContextType context)
public LootTable.Builder apply(LootFunction.Builder builder)
apply
in interface LootFunctionConsumingBuilder<LootTable.Builder>
public LootTable.Builder getThis()
getThis
in interface LootFunctionConsumingBuilder<LootTable.Builder>
public LootTable build()