Class SequenceFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.SequenceFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootItemFunction
,LootContextUser
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.functions.LootItemFunction
LootItemFunction.Builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SequenceFunction> private final BiFunction
<ItemStack, LootContext, ItemStack> private final List
<LootItemFunction> static final com.mojang.serialization.Codec
<SequenceFunction> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ItemStack p_300658_, LootContext p_298148_) getType()
static SequenceFunction
of
(List<LootItemFunction> p_299752_) void
validate
(ValidationContext p_297477_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams
-
Field Details
-
CODEC
-
INLINE_CODEC
-
functions
-
compositeFunction
-
-
Constructor Details
-
SequenceFunction
-
-
Method Details
-
of
-
apply
- Specified by:
apply
in interfaceBiFunction<ItemStack,
LootContext, ItemStack>
-
validate
- Specified by:
validate
in interfaceLootContextUser
-
getType
- Specified by:
getType
in interfaceLootItemFunction
-