Package net.minecraft.loot.function
Class SetFireworkExplosionLootFunction
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetFireworkExplosionLootFunction
- All Implemented Interfaces:
BiFunction<ItemStack,
,LootContext, ItemStack> LootContextAware
,LootFunction
- Mappings:
Namespace Name named net/minecraft/loot/function/SetFireworkExplosionLootFunction
intermediary net/minecraft/class_9375
official esm
-
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
<SetFireworkExplosionLootFunction> static final FireworkExplosionComponent
(package private) final Optional
<FireworkExplosionComponent.Type> Fields inherited from class net.minecraft.loot.function.ConditionalLootFunction
conditions
-
Constructor Summary
ConstructorDescriptionSetFireworkExplosionLootFunction
(List<LootCondition> conditions, Optional<FireworkExplosionComponent.Type> shape, Optional<IntList> colors, Optional<IntList> fadeColors, Optional<Boolean> trail, Optional<Boolean> twinkle) -
Method Summary
Modifier and TypeMethodDescriptionprivate FireworkExplosionComponent
apply
(FireworkExplosionComponent 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/SetFireworkExplosionLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_49874
Lnet/minecraft/class_9375;field_49874:Lcom/mojang/serialization/MapCodec;
official a
Lesm;a:Lcom/mojang/serialization/MapCodec;
-
DEFAULT_EXPLOSION
- Mappings:
Namespace Name Mixin selector named DEFAULT_EXPLOSION
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;DEFAULT_EXPLOSION:Lnet/minecraft/component/type/FireworkExplosionComponent;
intermediary field_49875
Lnet/minecraft/class_9375;field_49875:Lnet/minecraft/class_9283;
official b
Lesm;b:Lcxk;
-
shape
- Mappings:
Namespace Name Mixin selector named shape
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;shape:Ljava/util/Optional;
intermediary field_49876
Lnet/minecraft/class_9375;field_49876:Ljava/util/Optional;
official c
Lesm;c:Ljava/util/Optional;
-
colors
- Mappings:
Namespace Name Mixin selector named colors
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;colors:Ljava/util/Optional;
intermediary field_49877
Lnet/minecraft/class_9375;field_49877:Ljava/util/Optional;
official d
Lesm;d:Ljava/util/Optional;
-
fadeColors
- Mappings:
Namespace Name Mixin selector named fadeColors
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;fadeColors:Ljava/util/Optional;
intermediary field_49878
Lnet/minecraft/class_9375;field_49878:Ljava/util/Optional;
official e
Lesm;e:Ljava/util/Optional;
-
trail
- Mappings:
Namespace Name Mixin selector named trail
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;trail:Ljava/util/Optional;
intermediary field_49879
Lnet/minecraft/class_9375;field_49879:Ljava/util/Optional;
official f
Lesm;f:Ljava/util/Optional;
-
twinkle
- Mappings:
Namespace Name Mixin selector named twinkle
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;twinkle:Ljava/util/Optional;
intermediary field_49880
Lnet/minecraft/class_9375;field_49880:Ljava/util/Optional;
official h
Lesm;h:Ljava/util/Optional;
-
-
Constructor Details
-
SetFireworkExplosionLootFunction
public SetFireworkExplosionLootFunction(List<LootCondition> conditions, Optional<FireworkExplosionComponent.Type> shape, Optional<IntList> colors, Optional<IntList> fadeColors, Optional<Boolean> trail, Optional<Boolean> twinkle) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_9375;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
official <init>
Lesm;<init>(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;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
Lerw;a(Lcur;Leqk;)Lcur;
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/loot/function/SetFireworkExplosionLootFunction;apply(Lnet/minecraft/component/type/FireworkExplosionComponent;)Lnet/minecraft/component/type/FireworkExplosionComponent;
intermediary method_58205
Lnet/minecraft/class_9375;method_58205(Lnet/minecraft/class_9283;)Lnet/minecraft/class_9283;
official a
Lesm;a(Lcxk;)Lcxk;
-
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
Lerx;b()Lery;
-