Class SequenceFunction
java.lang.Object
net.minecraft.world.level.storage.loot.functions.SequenceFunction
- All Implemented Interfaces:
BiFunction<ItemStack, LootContext, ItemStack>, LootItemFunction, LootContextUser, Validatable
-
Nested Class Summary
Nested classes/interfaces inherited from interface LootItemFunction
LootItemFunction.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> private final List<LootItemFunction> static final com.mojang.serialization.Codec<SequenceFunction> static final com.mojang.serialization.MapCodec<SequenceFunction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ItemStack stack, LootContext context) com.mojang.serialization.MapCodec<SequenceFunction> codec()static SequenceFunctionof(List<LootItemFunction> functions) voidvalidate(ValidationContext output) Validate that this object is used correctly according to the given ValidationContext.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThenMethods inherited from interface LootContextUser
getReferencedContextParams
-
Field Details
-
MAP_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- Specified by:
validatein interfaceValidatable
-
codec
- Specified by:
codecin interfaceLootItemFunction
-