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 Codec<SequenceFunction> static final MapCodec<SequenceFunction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ItemStack stack, LootContext context) codec()static SequenceFunctionof(List<LootItemFunction> functions) voidvalidate(ValidationContext output) 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
- Specified by:
validatein interfaceLootContextUser- Specified by:
validatein interfaceValidatable
-
codec
- Specified by:
codecin interfaceLootItemFunction
-