public abstract static class LeafEntry.Builder<T extends LeafEntry.Builder<T>> extends LootEntry.Builder<T> implements LootFunctionConsumingBuilder<T>
Modifier and Type | Field and Description |
---|---|
private List<LootFunction> |
functions |
protected int |
quality |
protected int |
weight |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
protected LootFunction[] |
getFunctions() |
T |
setQuality(int quality) |
T |
setWeight(int weight) |
T |
withFunction(LootFunction.Builder builder) |
build, getConditions, getThis, getThisBuilder, withChild, withCondition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getThis
protected int weight
protected int quality
private final List<LootFunction> functions
public T withFunction(LootFunction.Builder builder)
withFunction
in interface LootFunctionConsumingBuilder<T extends LeafEntry.Builder<T>>
protected LootFunction[] getFunctions()
public T setWeight(int weight)
public T setQuality(int quality)