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 official edl
intermediary net/minecraft/class_85
named net/minecraft/loot/entry/LeafEntry
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static class
LeafEntry.Builder<T extends LeafEntry.Builder<T>>
protected class
protected static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LootChoice
(package private) final BiFunction<ItemStack,
LootContext, ItemStack> static final int
static final int
protected final List<LootFunction>
protected final int
protected final int
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
ModifierConstructorDescriptionprotected
LeafEntry
(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) -
Method Summary
Modifier and TypeMethodDescriptionstatic LeafEntry.Builder<?>
builder
(LeafEntry.Factory factory) boolean
expand
(LootContext context, Consumer<LootChoice> choiceConsumer) protected abstract void
generateLoot
(Consumer<ItemStack> lootConsumer, LootContext context) protected static <T extends LeafEntry>
com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, Integer, List<LootCondition>, List<LootFunction>> method_53290
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) void
validate
(LootTableReporter reporter) Methods inherited from class net.minecraft.loot.entry.LootPoolEntry
getType, method_53287, 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
-
field_31847
public static final int field_31847- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ledl;d:I
intermediary field_31847
Lnet/minecraft/class_85;field_31847:I
named field_31847
Lnet/minecraft/loot/entry/LeafEntry;field_31847:I
-
field_31848
public static final int field_31848- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ledl;f:I
intermediary field_31848
Lnet/minecraft/class_85;field_31848:I
named field_31848
Lnet/minecraft/loot/entry/LeafEntry;field_31848:I
-
weight
protected final int weight- Mappings:
Namespace Name Mixin selector official g
Ledl;g: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 h
Ledl;h: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 i
Ledl;i:Ljava/util/List;
intermediary field_996
Lnet/minecraft/class_85;field_996:Ljava/util/List;
named functions
Lnet/minecraft/loot/entry/LeafEntry;functions:Ljava/util/List;
-
compiledFunctions
- Mappings:
Namespace Name Mixin selector official a
Ledl;a: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 j
Ledl;j:Ledi;
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
protected LeafEntry(int weight, int quality, List<LootCondition> conditions, List<LootFunction> functions) - Mappings:
Namespace Name Mixin selector official <init>
Ledl;<init>(IILjava/util/List;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_85;<init>(IILjava/util/List;Ljava/util/List;)V
named <init>
Lnet/minecraft/loot/entry/LeafEntry;<init>(IILjava/util/List;Ljava/util/List;)V
-
-
Method Details
-
method_53290
protected static <T extends LeafEntry> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<T>,Integer, method_53290Integer, List<LootCondition>, List<LootFunction>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<T> instance) - Mappings:
Namespace Name Mixin selector official b
Ledl;b(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;
named method_53290
Lnet/minecraft/loot/entry/LeafEntry;method_53290(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
-
validate
- Overrides:
validate
in classLootPoolEntry
- Mappings:
Namespace Name Mixin selector official a
Ledj;a(Lecz;)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
Ledl;a(Ljava/util/function/Consumer;Lecq;)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
Ledb;expand(Lecq;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
Ledl;a(Ledl$d;)Ledl$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;
-