Class SetStewEffectLootFunction

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

public class SetStewEffectLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetStewEffectLootFunction
intermediary net/minecraft/class_152
official esw
  • Field Details

    • STEW_EFFECT_LIST_CODEC

      private static final com.mojang.serialization.Codec<List<SetStewEffectLootFunction.StewEffect>> STEW_EFFECT_LIST_CODEC
      Mappings:
      Namespace Name Mixin selector
      named STEW_EFFECT_LIST_CODEC Lnet/minecraft/loot/function/SetStewEffectLootFunction;STEW_EFFECT_LIST_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45852 Lnet/minecraft/class_152;field_45852:Lcom/mojang/serialization/Codec;
      official b Lesw;b:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.MapCodec<SetStewEffectLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetStewEffectLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45851 Lnet/minecraft/class_152;field_45851:Lcom/mojang/serialization/MapCodec;
      official a Lesw;a:Lcom/mojang/serialization/MapCodec;
    • stewEffects

      private final List<SetStewEffectLootFunction.StewEffect> stewEffects
      Mappings:
      Namespace Name Mixin selector
      named stewEffects Lnet/minecraft/loot/function/SetStewEffectLootFunction;stewEffects:Ljava/util/List;
      intermediary field_45853 Lnet/minecraft/class_152;field_45853:Ljava/util/List;
      official c Lesw;c:Ljava/util/List;
  • Constructor Details

    • SetStewEffectLootFunction

      SetStewEffectLootFunction(List<LootCondition> conditions, List<SetStewEffectLootFunction.StewEffect> stewEffects)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetStewEffectLootFunction;<init>(Ljava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_152;<init>(Ljava/util/List;Ljava/util/List;)V
      official <init> Lesw;<init>(Ljava/util/List;Ljava/util/List;)V
  • Method Details

    • 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;
    • getRequiredParameters

      public Set<LootContextParameter<?>> getRequiredParameters()
      Mappings:
      Namespace Name Mixin selector
      named getRequiredParameters Lnet/minecraft/loot/context/LootContextAware;getRequiredParameters()Ljava/util/Set;
      intermediary method_293 Lnet/minecraft/class_46;method_293()Ljava/util/Set;
      official a Leql;a()Ljava/util/Set;
    • process

      public 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;
    • builder

      public static SetStewEffectLootFunction.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/function/SetStewEffectLootFunction;builder()Lnet/minecraft/loot/function/SetStewEffectLootFunction$Builder;
      intermediary method_637 Lnet/minecraft/class_152;method_637()Lnet/minecraft/class_152$class_153;
      official c Lesw;c()Lesw$a;