Interface ComposableEntryContainer
- All Known Implementing Classes:
AlternativesEntry,CompositeEntryBase,DynamicLoot,EmptyLootItem,EntryGroup,LootItem,LootPoolEntryContainer,LootPoolSingletonContainer,NestedLootTable,SequentialEntry,TagEntry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base interface for loot pool entry containers.
A loot pool entry container holds one or more loot pools and will expand into those.
Additionally, the container can either succeed or fail, based on its conditions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComposableEntryContainerA container which always fails.static final ComposableEntryContainerA container that always succeeds. -
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableEntryContainerand(ComposableEntryContainer pEntry) booleanexpand(LootContext pLootContext, Consumer<LootPoolEntry> pEntryConsumer) Expand this loot pool entry container by callingentryConsumerwith any applicable entriesdefault ComposableEntryContaineror(ComposableEntryContainer pEntry)
-
Field Details
-
ALWAYS_FALSE
A container which always fails. -
ALWAYS_TRUE
A container that always succeeds.
-
-
Method Details
-
expand
Expand this loot pool entry container by callingentryConsumerwith any applicable entries- Returns:
- whether this loot pool entry container successfully expanded or not
-
and
-
or
-