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
- Mappings:
- Namespace - Name - named - net/minecraft/loot/entry/LeafEntry- intermediary - net/minecraft/class_85- official - ewk
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static classstatic classLeafEntry.Builder<T extends LeafEntry.Builder<T>>protected classprotected static interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LootChoice(package private) final BiFunction<ItemStack, LootContext, ItemStack> static final intstatic final intprotected final List<LootFunction> protected final intprotected final intFields inherited from class net.minecraft.loot.entry.LootPoolEntryconditionsFields inherited from interface net.minecraft.loot.entry.EntryCombinerALWAYS_FALSE, ALWAYS_TRUE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLeafEntry(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected static <T extends LeafEntry>
 com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>, Integer, Integer, List<LootCondition>, List<LootFunction>> addLeafFields(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) 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.LootPoolEntryaddConditionsField, getType, testMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.loot.entry.EntryCombinerand, or
- 
Field Details- 
DEFAULT_WEIGHTpublic static final int DEFAULT_WEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT_WEIGHT- Lnet/minecraft/loot/entry/LeafEntry;DEFAULT_WEIGHT:I- intermediary - field_31847- Lnet/minecraft/class_85;field_31847:I- official - d- Lewk;d:I
 
- 
DEFAULT_QUALITYpublic static final int DEFAULT_QUALITY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT_QUALITY- Lnet/minecraft/loot/entry/LeafEntry;DEFAULT_QUALITY:I- intermediary - field_31848- Lnet/minecraft/class_85;field_31848:I- official - f- Lewk;f:I
 
- 
weightprotected final int weight- Mappings:
- Namespace - Name - Mixin selector - named - weight- Lnet/minecraft/loot/entry/LeafEntry;weight:I- intermediary - field_995- Lnet/minecraft/class_85;field_995:I- official - g- Lewk;g:I
 
- 
qualityprotected final int quality- Mappings:
- Namespace - Name - Mixin selector - named - quality- Lnet/minecraft/loot/entry/LeafEntry;quality:I- intermediary - field_994- Lnet/minecraft/class_85;field_994:I- official - h- Lewk;h:I
 
- 
functions- Mappings:
- Namespace - Name - Mixin selector - named - functions- Lnet/minecraft/loot/entry/LeafEntry;functions:Ljava/util/List;- intermediary - field_996- Lnet/minecraft/class_85;field_996:Ljava/util/List;- official - i- Lewk;i:Ljava/util/List;
 
- 
compiledFunctions- Mappings:
- Namespace - Name - Mixin selector - named - compiledFunctions- Lnet/minecraft/loot/entry/LeafEntry;compiledFunctions:Ljava/util/function/BiFunction;- intermediary - field_997- Lnet/minecraft/class_85;field_997:Ljava/util/function/BiFunction;- official - a- Lewk;a:Ljava/util/function/BiFunction;
 
- 
choice- Mappings:
- Namespace - Name - Mixin selector - named - choice- Lnet/minecraft/loot/entry/LeafEntry;choice:Lnet/minecraft/loot/LootChoice;- intermediary - field_998- Lnet/minecraft/class_85;field_998:Lnet/minecraft/class_82;- official - j- Lewk;j:Lewh;
 
 
- 
- 
Constructor Details- 
LeafEntryprotected LeafEntry(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/entry/LeafEntry;<init>(IILjava/util/List;Ljava/util/List;)V- intermediary - <init>- Lnet/minecraft/class_85;<init>(IILjava/util/List;Ljava/util/List;)V- official - <init>- Lewk;<init>(IILjava/util/List;Ljava/util/List;)V
 
 
- 
- 
Method Details- 
addLeafFieldsprotected static <T extends LeafEntry> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, addLeafFieldsInteger, List<LootCondition>, List<LootFunction>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) - Mappings:
- Namespace - Name - Mixin selector - named - addLeafFields- Lnet/minecraft/loot/entry/LeafEntry;addLeafFields(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;- intermediary - method_53290- Lnet/minecraft/class_85;method_53290(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;- official - b- Lewk;b(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
 
- 
validate- Overrides:
- validatein class- LootPoolEntry
- Mappings:
- Namespace - Name - Mixin selector - named - validate- Lnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V- intermediary - method_415- Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)V- official - a- Lewi;a(Levy;)V
 
- 
generateLoot- Mappings:
- Namespace - Name - Mixin selector - named - generateLoot- Lnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V- intermediary - method_433- Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V- official - a- Lewk;a(Ljava/util/function/Consumer;Levs;)V
 
- 
expand- Mappings:
- Namespace - Name - Mixin selector - named - expand- Lnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z- intermediary - expand- Lnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Z- official - expand- Lewa;expand(Levs;Ljava/util/function/Consumer;)Z
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/loot/entry/LeafEntry;builder(Lnet/minecraft/loot/entry/LeafEntry$Factory;)Lnet/minecraft/loot/entry/LeafEntry$Builder;- intermediary - method_434- Lnet/minecraft/class_85;method_434(Lnet/minecraft/class_85$class_89;)Lnet/minecraft/class_85$class_86;- official - a- Lewk;a(Lewk$d;)Lewk$a;
 
 
-