Package net.minecraft.loot.entry
Class LeafEntry
java.lang.Object
net.minecraft.loot.entry.LootPoolEntry
net.minecraft.loot.entry.LeafEntry
- All Implemented Interfaces:
EntryCombiner
- Direct Known Subclasses:
DynamicEntry,EmptyEntry,ItemEntry,LootTableEntry,TagEntry
public abstract class LeafEntry extends LootPoolEntry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLeafEntry.BasicBuilderstatic classLeafEntry.Builder<T extends LeafEntry.Builder<T>>classLeafEntry.Choicestatic interfaceLeafEntry.Factorystatic classLeafEntry.Serializer<T extends LeafEntry> -
Field Summary
Fields Modifier and Type Field Description private LootChoicechoiceprivate BiFunction<ItemStack,LootContext,ItemStack>compiledFunctionsprotected LootFunction[]functionsprotected intqualityprotected intweight -
Constructor Summary
Constructors Modifier Constructor Description protectedLeafEntry(int weight, int quality, LootCondition[] conditions, LootFunction[] functions) -
Method Summary
Modifier and Type Method Description static LeafEntry.Builder<?>builder(LeafEntry.Factory factory)booleanexpand(LootContext context, Consumer<LootChoice> choiceConsumer)protected abstract voidgenerateLoot(Consumer<ItemStack> lootConsumer, LootContext context)voidvalidate(LootTableReporter reporter)
-
Field Details
-
weight
protected final int weight -
quality
protected final int quality -
functions
-
compiledFunctions
-
choice
-
-
Constructor Details
-
Method Details
-
validate
- Overrides:
validatein classLootPoolEntry
-
generateLoot
-
expand
-
builder
-