Package net.minecraft.loot.entry
Class AlternativeEntry
java.lang.Object
net.minecraft.loot.entry.LootPoolEntry
net.minecraft.loot.entry.CombinedEntry
net.minecraft.loot.entry.AlternativeEntry
- All Implemented Interfaces:
EntryCombiner
public class AlternativeEntry extends CombinedEntry
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AlternativeEntry.Builder
Nested classes/interfaces inherited from class net.minecraft.loot.entry.CombinedEntry
CombinedEntry.Factory<T extends CombinedEntry>
Nested classes/interfaces inherited from class net.minecraft.loot.entry.LootPoolEntry
LootPoolEntry.Serializer<T extends LootPoolEntry>
-
Field Summary
Fields inherited from class net.minecraft.loot.entry.CombinedEntry
children
Fields inherited from class net.minecraft.loot.entry.LootPoolEntry
conditions
Fields inherited from interface net.minecraft.loot.entry.EntryCombiner
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
Constructors Constructor Description AlternativeEntry(LootPoolEntry[] children, LootCondition[] conditions)
-
Method Summary
Modifier and Type Method Description static AlternativeEntry.Builder
builder(LootPoolEntry.Builder<?>[] children)
protected EntryCombiner
combine(EntryCombiner[] children)
LootPoolEntryType
getType()
void
validate(LootTableReporter reporter)
Methods inherited from class net.minecraft.loot.entry.CombinedEntry
createSerializer, expand
Methods inherited from class net.minecraft.loot.entry.LootPoolEntry
test
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.loot.entry.EntryCombiner
and, or
-
Constructor Details
-
AlternativeEntry
AlternativeEntry(LootPoolEntry[] children, LootCondition[] conditions)
-
-
Method Details
-
getType
- Specified by:
getType
in classLootPoolEntry
-
combine
- Specified by:
combine
in classCombinedEntry
-
validate
- Overrides:
validate
in classCombinedEntry
-
builder
-