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 intweightFields inherited from class net.minecraft.loot.entry.LootPoolEntry
conditionsFields inherited from interface net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE -
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)Methods inherited from class net.minecraft.loot.entry.LootPoolEntry
getType, testMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.entry.EntryCombiner
and, or
-
Field Details
-
weight
protected final int weight -
quality
protected final int quality -
functions
-
compiledFunctions
-
choice
-
-
Constructor Details
-
LeafEntry
-
-
Method Details
-
validate
- Overrides:
validatein classLootPoolEntry
-
generateLoot
-
expand
-
builder
-