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 SequenceFunctionof(List<LootItemFunction> pFunctions) voidvalidate(ValidationContext p_298605_) 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, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods 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:
applyin interfaceBiFunction<ItemStack,LootContext, ItemStack>
-
validate
Description copied from interface:LootContextUserValidate that this object is used correctly according to the given ValidationContext.- Specified by:
validatein interfaceLootContextUser
-
getType
- Specified by:
getTypein interfaceLootItemFunction
-