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 esz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SetFireworksLootFunction> static final FireworksComponent
private final Optional
<ListOperation.Values<FireworkExplosionComponent>> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ModifierConstructorDescriptionprotected
SetFireworksLootFunction
(List<LootCondition> conditions, Optional<ListOperation.Values<FireworkExplosionComponent>> explosions, Optional<Integer> flightDuration) -
Method Summary
Modifier and TypeMethodDescriptionprivate FireworksComponent
apply
(FireworksComponent fireworksComponent) getType()
protected ItemStack
process
(ItemStack stack, LootContext context) Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction
addConditionsField, apply, builder, validate
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.loot.context.LootContextAware
getRequiredParameters
-
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
Lesz;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
Lesz;b:Lcww;
-
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
Lesz;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
Lesz;d:Ljava/util/Optional;
-
-
Constructor Details
-
SetFireworksLootFunction
protected 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>
Lesz;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
process
- Specified by:
process
in classConditionalLootFunction
- 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
Lesj;a(Lcud;Leqw;)Lcud;
-
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
Lesz;a(Lcww;)Lcww;
-
getType
- Specified by:
getType
in interfaceLootFunction
- Specified by:
getType
in classConditionalLootFunction
- 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
Lesk;b()Lesl;
-