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, Validatable
- Direct Known Subclasses:
AlternativesEntry, EntryGroup, SequentialEntry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class LootPoolEntryContainer
LootPoolEntryContainer.Builder<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<LootPoolEntryContainer> private final ComposableEntryContainerstatic final ProblemReporter.ProblemFields inherited from class LootPoolEntryContainer
conditionsFields inherited from interface ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompositeEntryBase(List<LootPoolEntryContainer> children, List<LootItemCondition> conditions) -
Method Summary
Modifier and TypeMethodDescriptionabstract MapCodec<? extends CompositeEntryBase> codec()protected abstract ComposableEntryContainercompose(List<? extends ComposableEntryContainer> entries) static <T extends CompositeEntryBase>
MapCodec<T> createCodec(CompositeEntryBase.CompositeEntryConstructor<T> constructor) final booleanexpand(LootContext context, Consumer<LootPoolEntry> output) voidvalidate(ValidationContext context) Methods inherited from class LootPoolEntryContainer
canRun, commonFieldsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComposableEntryContainer
and, or
-
Field Details
-
NO_CHILDREN_PROBLEM
-
children
-
composedChildren
-
-
Constructor Details
-
CompositeEntryBase
protected CompositeEntryBase(List<LootPoolEntryContainer> children, List<LootItemCondition> conditions)
-
-
Method Details
-
codec
- Specified by:
codecin classLootPoolEntryContainer
-
validate
- Specified by:
validatein interfaceValidatable- Overrides:
validatein classLootPoolEntryContainer
-
compose
protected abstract ComposableEntryContainer compose(List<? extends ComposableEntryContainer> entries) -
expand
-
createCodec
public static <T extends CompositeEntryBase> MapCodec<T> createCodec(CompositeEntryBase.CompositeEntryConstructor<T> constructor)
-