Class SetFireworkExplosionLootFunction

java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction
net.minecraft.loot.function.SetFireworkExplosionLootFunction
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootContextAware, LootFunction

public class SetFireworkExplosionLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetFireworkExplosionLootFunction
intermediary net/minecraft/class_9375
official esm
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetFireworkExplosionLootFunction> 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

      public static final FireworkExplosionComponent 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

      final Optional<IntList> 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

      final Optional<IntList> 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

      final Optional<Boolean> 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

      final Optional<Boolean> 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

      protected ItemStack process(ItemStack stack, LootContext context)
      Specified by:
      process in 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 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 interface LootFunction
      Specified by:
      getType in 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 Lerx;b()Lery;