public abstract class CombinedEntry extends LootPoolEntry
Modifier and Type | Class and Description |
---|---|
static interface |
CombinedEntry.Factory<T extends CombinedEntry> |
LootPoolEntry.Builder<T extends LootPoolEntry.Builder<T>>, LootPoolEntry.Serializer<T extends LootPoolEntry>
Modifier and Type | Field and Description |
---|---|
protected LootPoolEntry[] |
children |
private EntryCombiner |
predicate |
conditions
ALWAYS_FALSE, ALWAYS_TRUE
Modifier | Constructor and Description |
---|---|
protected |
CombinedEntry(LootPoolEntry[] children,
LootCondition[] conditions) |
Modifier and Type | Method and Description |
---|---|
protected abstract EntryCombiner |
combine(EntryCombiner[] children) |
static <T extends CombinedEntry> |
createSerializer(CombinedEntry.Factory<T> factory) |
boolean |
expand(LootContext context,
Consumer<LootChoice> choiceConsumer) |
void |
validate(LootTableReporter reporter) |
getType, test
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, or
protected final LootPoolEntry[] children
private final EntryCombiner predicate
protected CombinedEntry(LootPoolEntry[] children, LootCondition[] conditions)
public void validate(LootTableReporter reporter)
validate
in class LootPoolEntry
protected abstract EntryCombiner combine(EntryCombiner[] children)
public final boolean expand(LootContext context, Consumer<LootChoice> choiceConsumer)
public static <T extends CombinedEntry> LootPoolEntry.Serializer<T> createSerializer(CombinedEntry.Factory<T> factory)