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 eyq
-
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
getAllowedParameters
-
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
Leyq;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
Leyq;b:Ldad;
-
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
Leyq;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
Leyq;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
Leyq;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
Leyq;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
Leyq;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>
Leyq;<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
Leyb;a(Lcxo;Lewo;)Lcxo;
-
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
Leyq;a(Ldad;)Ldad;
-
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
Leyc;b()Leyd;
-