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 eyq
  • 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 Leyq;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 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

      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 Leyq;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 Leyq;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 Leyq;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 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

      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 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 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 Leyc;b()Leyd;