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
- Mappings:
Namespace Name official dfc
intermediary net/minecraft/class_85
named net/minecraft/loot/entry/LeafEntry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LeafEntry.BasicBuilder
static class
LeafEntry.Builder<T extends LeafEntry.Builder<T>>
class
LeafEntry.Choice
static interface
LeafEntry.Factory
static class
LeafEntry.Serializer<T extends LeafEntry>
-
Field Summary
Fields Modifier and Type Field Description private LootChoice
choice
private BiFunction<ItemStack,LootContext,ItemStack>
compiledFunctions
protected LootFunction[]
functions
protected int
quality
protected int
weight
Fields inherited from class net.minecraft.loot.entry.LootPoolEntry
conditions
Fields inherited from interface net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
Constructors Modifier Constructor Description protected
LeafEntry(int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
-
Method Summary
Modifier and Type Method Description static LeafEntry.Builder<?>
builder(LeafEntry.Factory factory)
boolean
expand(LootContext context, Consumer<LootChoice> choiceConsumer)
protected abstract void
generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
validate(LootTableReporter reporter)
Methods inherited from class net.minecraft.loot.entry.LootPoolEntry
getType, test
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.entry.EntryCombiner
and, or
-
Field Details
-
weight
protected final int weight- Mappings:
Namespace Name Mixin selector official c
Ldfc;c:I
intermediary field_995
Lnet/minecraft/class_85;field_995:I
named weight
Lnet/minecraft/loot/entry/LeafEntry;weight:I
-
quality
protected final int quality- Mappings:
Namespace Name Mixin selector official e
Ldfc;e:I
intermediary field_994
Lnet/minecraft/class_85;field_994:I
named quality
Lnet/minecraft/loot/entry/LeafEntry;quality:I
-
functions
- Mappings:
Namespace Name Mixin selector official f
Ldfc;f:[Ldft;
intermediary field_996
Lnet/minecraft/class_85;field_996:[Lnet/minecraft/class_117;
named functions
Lnet/minecraft/loot/entry/LeafEntry;functions:[Lnet/minecraft/loot/function/LootFunction;
-
compiledFunctions
- Mappings:
Namespace Name Mixin selector official g
Ldfc;g:Ljava/util/function/BiFunction;
intermediary field_997
Lnet/minecraft/class_85;field_997:Ljava/util/function/BiFunction;
named compiledFunctions
Lnet/minecraft/loot/entry/LeafEntry;compiledFunctions:Ljava/util/function/BiFunction;
-
choice
- Mappings:
Namespace Name Mixin selector official h
Ldfc;h:Ldez;
intermediary field_998
Lnet/minecraft/class_85;field_998:Lnet/minecraft/class_82;
named choice
Lnet/minecraft/loot/entry/LeafEntry;choice:Lnet/minecraft/loot/LootChoice;
-
-
Constructor Details
-
LeafEntry
- Mappings:
Namespace Name Mixin selector official <init>
Ldfc;<init>(II[Ldha;[Ldft;)V
intermediary <init>
Lnet/minecraft/class_85;<init>(II[Lnet/minecraft/class_5341;[Lnet/minecraft/class_117;)V
named <init>
Lnet/minecraft/loot/entry/LeafEntry;<init>(II[Lnet/minecraft/loot/condition/LootCondition;[Lnet/minecraft/loot/function/LootFunction;)V
-
-
Method Details
-
validate
- Overrides:
validate
in classLootPoolEntry
- Mappings:
Namespace Name Mixin selector official a
Ldfa;a(Ldeq;)V
intermediary method_415
Lnet/minecraft/class_79;method_415(Lnet/minecraft/class_58;)V
named validate
Lnet/minecraft/loot/entry/LootPoolEntry;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Ljava/util/function/Consumer;Ldei;)V
intermediary method_433
Lnet/minecraft/class_85;method_433(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
named generateLoot
Lnet/minecraft/loot/entry/LeafEntry;generateLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
-
expand
- Mappings:
Namespace Name Mixin selector official expand
Ldes;expand(Ldei;Ljava/util/function/Consumer;)Z
intermediary expand
Lnet/minecraft/class_64;expand(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Z
named expand
Lnet/minecraft/loot/entry/EntryCombiner;expand(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Z
-
builder
- Mappings:
Namespace Name Mixin selector official a
Ldfc;a(Ldfc$d;)Ldfc$a;
intermediary method_434
Lnet/minecraft/class_85;method_434(Lnet/minecraft/class_85$class_89;)Lnet/minecraft/class_85$class_86;
named builder
Lnet/minecraft/loot/entry/LeafEntry;builder(Lnet/minecraft/loot/entry/LeafEntry$Factory;)Lnet/minecraft/loot/entry/LeafEntry$Builder;
-