Package net.minecraft.loot
Class ParentedLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.ParentedLootEntry
-
- All Implemented Interfaces:
ILootEntry
- Direct Known Subclasses:
AlternativesLootEntry
,GroupLootEntry
,SequenceLootEntry
public abstract class ParentedLootEntry extends LootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ParentedLootEntry.IFactory<T extends ParentedLootEntry>
-
Nested classes/interfaces inherited from class net.minecraft.loot.LootEntry
LootEntry.Builder<T extends LootEntry.Builder<T>>, LootEntry.Serializer<T extends LootEntry>
-
-
Field Summary
Fields Modifier and Type Field Description protected LootEntry[]
children
private ILootEntry
composedChildren
-
Fields inherited from class net.minecraft.loot.LootEntry
conditions
-
Fields inherited from interface net.minecraft.loot.ILootEntry
ALWAYS_FALSE, ALWAYS_TRUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParentedLootEntry(LootEntry[] p_i51262_1_, ILootCondition[] p_i51262_2_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ILootEntry
compose(ILootEntry[] p_216146_1_)
static <T extends ParentedLootEntry>
LootEntry.Serializer<T>createSerializer(ParentedLootEntry.IFactory<T> p_237409_0_)
boolean
expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
void
validate(ValidationTracker p_225579_1_)
-
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.ILootEntry
and, or
-
-
-
-
Field Detail
-
children
protected final LootEntry[] children
-
composedChildren
private final ILootEntry composedChildren
-
-
Constructor Detail
-
ParentedLootEntry
protected ParentedLootEntry(LootEntry[] p_i51262_1_, ILootCondition[] p_i51262_2_)
-
-
Method Detail
-
validate
public void validate(ValidationTracker p_225579_1_)
-
compose
protected abstract ILootEntry compose(ILootEntry[] p_216146_1_)
-
expand
public final boolean expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
-
createSerializer
public static <T extends ParentedLootEntry> LootEntry.Serializer<T> createSerializer(ParentedLootEntry.IFactory<T> p_237409_0_)
-
-