Class AlternativesEntry
java.lang.Object
net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
net.minecraft.world.level.storage.loot.entries.CompositeEntryBase
net.minecraft.world.level.storage.loot.entries.AlternativesEntry
- All Implemented Interfaces:
ComposableEntryContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.CompositeEntryBase
CompositeEntryBase.CompositeEntryConstructor<T extends CompositeEntryBase>
Nested classes/interfaces inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
LootPoolEntryContainer.Serializer<T extends LootPoolEntryContainer>
-
Field Summary
Fields inherited from class net.minecraft.world.level.storage.loot.entries.CompositeEntryBase
children
Fields inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
conditions
Fields inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
ConstructorDescriptionAlternativesEntry
(LootPoolEntryContainer[] p_79384_, LootItemCondition[] p_79385_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> AlternativesEntry.Builder
alternatives
(Collection<E> p_230934_, Function<E, LootPoolEntryContainer.Builder<?>> p_230935_) static AlternativesEntry.Builder
alternatives
(LootPoolEntryContainer.Builder<?>... p_79396_) protected ComposableEntryContainer
compose
(ComposableEntryContainer[] p_79390_) getType()
void
validate
(ValidationContext p_79388_) Methods inherited from class net.minecraft.world.level.storage.loot.entries.CompositeEntryBase
createSerializer, expand
Methods inherited from class net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer
canRun
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer
and, or
-
Constructor Details
-
AlternativesEntry
AlternativesEntry(LootPoolEntryContainer[] p_79384_, LootItemCondition[] p_79385_)
-
-
Method Details
-
getType
- Specified by:
getType
in classLootPoolEntryContainer
-
compose
- Specified by:
compose
in classCompositeEntryBase
-
validate
- Overrides:
validate
in classCompositeEntryBase
-
alternatives
-
alternatives
public static <E> AlternativesEntry.Builder alternatives(Collection<E> p_230934_, Function<E, LootPoolEntryContainer.Builder<?>> p_230935_)
-