public abstract class CombinedEntry extends LootEntry
Modifier and Type | Class and Description |
---|---|
static interface |
CombinedEntry.Factory<T extends CombinedEntry> |
static class |
CombinedEntry.Serializer<T extends CombinedEntry> |
LootEntry.Builder<T extends LootEntry.Builder<T>>
Modifier and Type | Field and Description |
---|---|
protected LootEntry[] |
children |
private EntryCombiner |
predicate |
conditions
ALWAYS_FALSE, ALWAYS_TRUE
Modifier | Constructor and Description |
---|---|
protected |
CombinedEntry(LootEntry[] children,
LootCondition[] conditions) |
Modifier and Type | Method and Description |
---|---|
void |
check(LootTableReporter lootTableReporter) |
protected abstract EntryCombiner |
combine(EntryCombiner[] children) |
static <T extends CombinedEntry> |
createSerializer(Identifier id,
Class<T> type,
CombinedEntry.Factory<T> entry) |
boolean |
expand(LootContext lootContext,
Consumer<LootChoice> consumer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, or
protected final LootEntry[] children
private final EntryCombiner predicate
protected CombinedEntry(LootEntry[] children, LootCondition[] conditions)
public void check(LootTableReporter lootTableReporter)
protected abstract EntryCombiner combine(EntryCombiner[] children)
public final boolean expand(LootContext lootContext, Consumer<LootChoice> consumer)
public static <T extends CombinedEntry> CombinedEntry.Serializer<T> createSerializer(Identifier id, Class<T> type, CombinedEntry.Factory<T> entry)