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/LeafEntryintermediary net/minecraft/class_85official esj
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic classLeafEntry.Builder<T extends LeafEntry.Builder<T>>protected classprotected static interface -
Field Summary
FieldsModifier 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.LootPoolEntry
conditionsFields inherited from interface net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLeafEntry(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) -
Method Summary
Modifier 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.LootPoolEntry
addConditionsField, 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
-
DEFAULT_WEIGHT
public static final int DEFAULT_WEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WEIGHTLnet/minecraft/loot/entry/LeafEntry;DEFAULT_WEIGHT:Iintermediary field_31847Lnet/minecraft/class_85;field_31847:Iofficial dLesj;d:I
-
DEFAULT_QUALITY
public static final int DEFAULT_QUALITY- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_QUALITYLnet/minecraft/loot/entry/LeafEntry;DEFAULT_QUALITY:Iintermediary field_31848Lnet/minecraft/class_85;field_31848:Iofficial fLesj;f:I
-
weight
protected final int weight- Mappings:
Namespace Name Mixin selector named weightLnet/minecraft/loot/entry/LeafEntry;weight:Iintermediary field_995Lnet/minecraft/class_85;field_995:Iofficial gLesj;g:I
-
quality
protected final int quality- Mappings:
Namespace Name Mixin selector named qualityLnet/minecraft/loot/entry/LeafEntry;quality:Iintermediary field_994Lnet/minecraft/class_85;field_994:Iofficial hLesj;h:I
-
functions
- Mappings:
Namespace Name Mixin selector named functionsLnet/minecraft/loot/entry/LeafEntry;functions:Ljava/util/List;intermediary field_996Lnet/minecraft/class_85;field_996:Ljava/util/List;official iLesj;i:Ljava/util/List;
-
compiledFunctions
- Mappings:
Namespace Name Mixin selector named compiledFunctionsLnet/minecraft/loot/entry/LeafEntry;compiledFunctions:Ljava/util/function/BiFunction;intermediary field_997Lnet/minecraft/class_85;field_997:Ljava/util/function/BiFunction;official aLesj;a:Ljava/util/function/BiFunction;
-
choice
- Mappings:
Namespace Name Mixin selector named choiceLnet/minecraft/loot/entry/LeafEntry;choice:Lnet/minecraft/loot/LootChoice;intermediary field_998Lnet/minecraft/class_85;field_998:Lnet/minecraft/class_82;official jLesj;j:Lesg;
-
-
Constructor Details
-
LeafEntry
protected 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;)Vintermediary <init>Lnet/minecraft/class_85;<init>(IILjava/util/List;Ljava/util/List;)Vofficial <init>Lesj;<init>(IILjava/util/List;Ljava/util/List;)V
-
-
Method Details
-
addLeafFields
protected 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 addLeafFieldsLnet/minecraft/loot/entry/LeafEntry;addLeafFields(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;intermediary method_53290Lnet/minecraft/class_85;method_53290(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;official bLesj;b(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
-
validate
- Overrides:
validatein classLootPoolEntry- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)Vintermediary method_415Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)Vofficial aLesh;a(Lerx;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)Vintermediary method_433Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Vofficial aLesj;a(Ljava/util/function/Consumer;Lerr;)V
-
expand
- Mappings:
Namespace Name Mixin selector named expandLnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Zintermediary expandLnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Zofficial expandLerz;expand(Lerr;Ljava/util/function/Consumer;)Z
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/loot/entry/LeafEntry;builder(Lnet/minecraft/loot/entry/LeafEntry$Factory;)Lnet/minecraft/loot/entry/LeafEntry$Builder;intermediary method_434Lnet/minecraft/class_85;method_434(Lnet/minecraft/class_85$class_89;)Lnet/minecraft/class_85$class_86;official aLesj;a(Lesj$d;)Lesj$a;
-