Package net.minecraft.loot.entry
Class LeafEntry.Builder<T extends LeafEntry.Builder<T>>
java.lang.Object
net.minecraft.loot.entry.LootPoolEntry.Builder<T>
net.minecraft.loot.entry.LeafEntry.Builder<T>
- All Implemented Interfaces:
LootConditionConsumingBuilder<T>
,LootFunctionConsumingBuilder<T>
- Direct Known Subclasses:
LeafEntry.BasicBuilder
- Enclosing class:
- LeafEntry
public abstract static class LeafEntry.Builder<T extends LeafEntry.Builder<T>> extends LootPoolEntry.Builder<T> implements LootFunctionConsumingBuilder<T>
-
Field Summary
Fields Modifier and Type Field Description private List<LootFunction>
functions
protected int
quality
protected int
weight
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description T
apply(LootFunction.Builder builder)
protected LootFunction[]
getFunctions()
T
quality(int quality)
T
weight(int weight)
Methods inherited from class net.minecraft.loot.entry.LootPoolEntry.Builder
alternatively, build, conditionally, getConditions, getThis, getThisBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.function.LootFunctionConsumingBuilder
getThis
-
Field Details
-
weight
protected int weight -
quality
protected int quality -
functions
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceLootFunctionConsumingBuilder<T extends LeafEntry.Builder<T>>
-
getFunctions
-
weight
-
quality
-