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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
LootPoolEntryContainer.Builder<T extends LootPoolEntryContainer.Builder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<LootPoolEntryContainer>private final ComposableEntryContainerFields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditionsFields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompositeEntryBase(List<LootPoolEntryContainer> p_299424_, List<LootItemCondition> p_299955_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ComposableEntryContainercompose(List<? extends ComposableEntryContainer> p_298994_) static <T extends CompositeEntryBase>
com.mojang.serialization.Codec<T>createCodec(CompositeEntryBase.CompositeEntryConstructor<T> p_300261_) final booleanexpand(LootContext p_79439_, Consumer<LootPoolEntry> p_79440_) voidvalidate(ValidationContext p_79434_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun, commonFields, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
validatein classLootPoolEntryContainer
-
compose
protected abstract ComposableEntryContainer compose(List<? extends ComposableEntryContainer> p_298994_) -
expand
-
createCodec
public static <T extends CompositeEntryBase> com.mojang.serialization.Codec<T> createCodec(CompositeEntryBase.CompositeEntryConstructor<T> p_300261_)
-