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 intermediary net/minecraft/class_85official eaenamed net/minecraft/loot/entry/LeafEntry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic classLeafEntry.Builder<T extends LeafEntry.Builder<T>>protected classprotected static interfacestatic classLeafEntry.Serializer<T extends LeafEntry> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LootChoice(package private) final BiFunction<ItemStack,LootContext, ItemStack> static final intstatic final intprotected final 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, LootCondition[] conditions, LootFunction[] functions) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
field_31847
public static final int field_31847- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31847Lnet/minecraft/class_85;field_31847:Iofficial cLeae;c:Inamed field_31847Lnet/minecraft/loot/entry/LeafEntry;field_31847:I
-
field_31848
public static final int field_31848- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31848Lnet/minecraft/class_85;field_31848:Iofficial eLeae;e:Inamed field_31848Lnet/minecraft/loot/entry/LeafEntry;field_31848:I
-
weight
protected final int weight- Mappings:
Namespace Name Mixin selector intermediary field_995Lnet/minecraft/class_85;field_995:Iofficial fLeae;f:Inamed weightLnet/minecraft/loot/entry/LeafEntry;weight:I
-
quality
protected final int quality- Mappings:
Namespace Name Mixin selector intermediary field_994Lnet/minecraft/class_85;field_994:Iofficial gLeae;g:Inamed qualityLnet/minecraft/loot/entry/LeafEntry;quality:I
-
functions
- Mappings:
Namespace Name Mixin selector intermediary field_996Lnet/minecraft/class_85;field_996:[Lnet/minecraft/class_117;official hLeae;h:[Leaw;named functionsLnet/minecraft/loot/entry/LeafEntry;functions:[Lnet/minecraft/loot/function/LootFunction;
-
compiledFunctions
- Mappings:
Namespace Name Mixin selector intermediary field_997Lnet/minecraft/class_85;field_997:Ljava/util/function/BiFunction;official iLeae;i:Ljava/util/function/BiFunction;named compiledFunctionsLnet/minecraft/loot/entry/LeafEntry;compiledFunctions:Ljava/util/function/BiFunction;
-
choice
- Mappings:
Namespace Name Mixin selector intermediary field_998Lnet/minecraft/class_85;field_998:Lnet/minecraft/class_82;official jLeae;j:Leab;named choiceLnet/minecraft/loot/entry/LeafEntry;choice:Lnet/minecraft/loot/LootChoice;
-
-
Constructor Details
-
LeafEntry
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_85;<init>(II[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;)Vofficial <init>Leae;<init>(II[Lech;[Leaw;)Vnamed <init>Lnet/minecraft/loot/entry/LeafEntry;<init>(II[Lnet/minecraft/loot/condition/LootCondition;[Lnet/minecraft/loot/function/LootFunction;)V
-
-
Method Details
-
validate
- Overrides:
validatein classLootPoolEntry- Mappings:
Namespace Name Mixin selector intermediary method_415Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)Vofficial aLeac;a(Ldzs;)Vnamed validateLnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector intermediary method_433Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)Vofficial aLeae;a(Ljava/util/function/Consumer;Ldzh;)Vnamed generateLootLnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
-
expand
- Mappings:
Namespace Name Mixin selector intermediary expandLnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Zofficial expandLdzu;expand(Ldzh;Ljava/util/function/Consumer;)Znamed expandLnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z
-
builder
- Mappings:
Namespace Name Mixin selector intermediary method_434Lnet/minecraft/class_85;method_434(Lnet/minecraft/class_85$class_89;)Lnet/minecraft/class_85$class_86;official aLeae;a(Leae$d;)Leae$a;named builderLnet/minecraft/loot/entry/LeafEntry;builder(Lnet/minecraft/loot/entry/LeafEntry$Factory;)Lnet/minecraft/loot/entry/LeafEntry$Builder;
-