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
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ItemStack pStack, LootContext pContext) getType()
static SequenceFunction
of
(List<LootItemFunction> pFunctions) void
validate
(ValidationContext pContext) Validate that this object is used correctly according to the given ValidationContext.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
Validate that this object is used correctly according to the given ValidationContext.- Specified by:
validate
in interfaceLootContextUser
-
getType
- Specified by:
getType
in interfaceLootItemFunction
-