Package net.minecraft.loot.function
Class SetFireworksLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetFireworksLootFunction
- All Implemented Interfaces:
- BiFunction<ItemStack,,- LootContext, - ItemStack> - LootContextAware,- LootFunction
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/SetFireworksLootFunction- intermediary - net/minecraft/class_9376- official - exv
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunctionConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SetFireworksLootFunction> static final FireworksComponentprivate final Optional<ListOperation.Values<FireworkExplosionComponent>> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunctionconditions
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSetFireworksLootFunction(List<LootCondition> conditions, Optional<ListOperation.Values<FireworkExplosionComponent>> explosions, Optional<Integer> flightDuration) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate FireworksComponentapply(FireworksComponent fireworksComponent) getType()protected ItemStackprocess(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunctionaddConditionsField, apply, builder, validateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunctionandThenMethods inherited from interface net.minecraft.loot.context.LootContextAwaregetAllowedParameters
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/loot/function/SetFireworksLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_49881- Lnet/minecraft/class_9376;field_49881:Lcom/mojang/serialization/MapCodec;- official - a- Lexv;a:Lcom/mojang/serialization/MapCodec;
 
- 
DEFAULT_FIREWORKS- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT_FIREWORKS- Lnet/minecraft/loot/function/SetFireworksLootFunction;DEFAULT_FIREWORKS:Lnet/minecraft/component/type/FireworksComponent;- intermediary - field_49882- Lnet/minecraft/class_9376;field_49882:Lnet/minecraft/class_9284;- official - b- Lexv;b:Lczg;
 
- 
explosions- Mappings:
- Namespace - Name - Mixin selector - named - explosions- Lnet/minecraft/loot/function/SetFireworksLootFunction;explosions:Ljava/util/Optional;- intermediary - field_49883- Lnet/minecraft/class_9376;field_49883:Ljava/util/Optional;- official - c- Lexv;c:Ljava/util/Optional;
 
- 
flightDuration- Mappings:
- Namespace - Name - Mixin selector - named - flightDuration- Lnet/minecraft/loot/function/SetFireworksLootFunction;flightDuration:Ljava/util/Optional;- intermediary - field_49885- Lnet/minecraft/class_9376;field_49885:Ljava/util/Optional;- official - d- Lexv;d:Ljava/util/Optional;
 
 
- 
- 
Constructor Details- 
SetFireworksLootFunctionprotected SetFireworksLootFunction(List<LootCondition> conditions, Optional<ListOperation.Values<FireworkExplosionComponent>> explosions, Optional<Integer> flightDuration) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/loot/function/SetFireworksLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_9376;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;)V- official - <init>- Lexv;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;)V
 
 
- 
- 
Method Details- 
process- Specified by:
- processin class- ConditionalLootFunction
- Mappings:
- Namespace - Name - Mixin selector - named - process- Lnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;- intermediary - method_522- Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;- official - a- Lexf;a(Lcwq;Levs;)Lcwq;
 
- 
apply- Mappings:
- Namespace - Name - Mixin selector - named - apply- Lnet/minecraft/loot/function/SetFireworksLootFunction;apply(Lnet/minecraft/component/type/FireworksComponent;)Lnet/minecraft/component/type/FireworksComponent;- intermediary - method_58212- Lnet/minecraft/class_9376;method_58212(Lnet/minecraft/class_9284;)Lnet/minecraft/class_9284;- official - a- Lexv;a(Lczg;)Lczg;
 
- 
getType- Specified by:
- getTypein interface- LootFunction
- Specified by:
- getTypein class- ConditionalLootFunction
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;- intermediary - method_29321- Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;- official - b- Lexg;b()Lexh;
 
 
-