Class CompositeEntryBase
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase
- All Implemented Interfaces:
ComposableEntryContainer
- Direct Known Subclasses:
AlternativesEntry
,EntryGroup
,SequentialEntry
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
LootPoolEntryContainer.Builder<T extends LootPoolEntryContainer.Builder<T>>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List
<LootPoolEntryContainer> private final ComposableEntryContainer
Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditions
Fields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
ModifierConstructorDescriptionprotected
CompositeEntryBase
(List<LootPoolEntryContainer> p_299424_, List<LootItemCondition> p_299955_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ComposableEntryContainer
compose
(List<? extends ComposableEntryContainer> p_298994_) static <T extends CompositeEntryBase>
com.mojang.serialization.MapCodec<T> createCodec
(CompositeEntryBase.CompositeEntryConstructor<T> p_300261_) final boolean
expand
(LootContext p_79439_, Consumer<LootPoolEntry> p_79440_) void
validate
(ValidationContext p_79434_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun, commonFields, getType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
and, or
-
Field Details
-
children
-
composedChildren
-
-
Constructor Details
-
CompositeEntryBase
protected CompositeEntryBase(List<LootPoolEntryContainer> p_299424_, List<LootItemCondition> p_299955_)
-
-
Method Details
-
validate
- Overrides:
validate
in classLootPoolEntryContainer
-
compose
protected abstract ComposableEntryContainer compose(List<? extends ComposableEntryContainer> p_298994_) -
expand
-
createCodec
public static <T extends CompositeEntryBase> com.mojang.serialization.MapCodec<T> createCodec(CompositeEntryBase.CompositeEntryConstructor<T> p_300261_)
-