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 ComposableEntryContainer
A container which always fails.static final ComposableEntryContainer
A container that always succeeds. -
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableEntryContainer
and
(ComposableEntryContainer pEntry) boolean
expand
(LootContext pLootContext, Consumer<LootPoolEntry> pEntryConsumer) Expand this loot pool entry container by callingentryConsumer
with any applicable entriesdefault ComposableEntryContainer
or
(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 callingentryConsumer
with any applicable entries- Returns:
- whether this loot pool entry container successfully expanded or not
-
and
-
or
-