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 erf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.loot.function.ConditionalLootFunction
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SetFireworksLootFunction> static final FireworksComponent
private final List
<FireworkExplosionComponent> private final ListOperation
Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SetFireworksLootFunction
(List<LootCondition> conditions, List<FireworkExplosionComponent> explosions, ListOperation operation, Optional<Integer> flightDuration) -
Method Summary
Modifier and TypeMethodDescriptionprivate FireworksComponent
apply
(FireworksComponent current) 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
Lerf;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
Lerf;b:Lcwi;
-
explosions
- Mappings:
Namespace Name Mixin selector named explosions
Lnet/minecraft/loot/function/SetFireworksLootFunction;explosions:Ljava/util/List;
intermediary field_49883
Lnet/minecraft/class_9376;field_49883:Ljava/util/List;
official c
Lerf;c:Ljava/util/List;
-
operation
- Mappings:
Namespace Name Mixin selector named operation
Lnet/minecraft/loot/function/SetFireworksLootFunction;operation:Lnet/minecraft/util/collection/ListOperation;
intermediary field_49884
Lnet/minecraft/class_9376;field_49884:Lnet/minecraft/class_9368;
official d
Lerf;d:Leqp;
-
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 e
Lerf;e:Ljava/util/Optional;
-
-
Constructor Details
-
SetFireworksLootFunction
protected SetFireworksLootFunction(List<LootCondition> conditions, List<FireworkExplosionComponent> explosions, ListOperation operation, Optional<Integer> flightDuration) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/SetFireworksLootFunction;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/util/collection/ListOperation;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_9376;<init>(Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_9368;Ljava/util/Optional;)V
official <init>
Lerf;<init>(Ljava/util/List;Ljava/util/List;Leqp;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
Leqq;a(Lcto;Lepf;)Lcto;
-
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
Lerf;a(Lcwi;)Lcwi;
-
getType
- 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
Leqr;b()Leqs;
-