Class SetPotionLootFunction

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

public class SetPotionLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetPotionLootFunction
intermediary net/minecraft/class_6662
official esv
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetPotionLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetPotionLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45850 Lnet/minecraft/class_6662;field_45850:Lcom/mojang/serialization/MapCodec;
      official a Lesv;a:Lcom/mojang/serialization/MapCodec;
    • potion

      private final RegistryEntry<Potion> potion
      Mappings:
      Namespace Name Mixin selector
      named potion Lnet/minecraft/loot/function/SetPotionLootFunction;potion:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_35080 Lnet/minecraft/class_6662;field_35080:Lnet/minecraft/class_6880;
      official b Lesv;b:Lji;
  • Constructor Details

    • SetPotionLootFunction

      private SetPotionLootFunction(List<LootCondition> conditions, RegistryEntry<Potion> potion)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetPotionLootFunction;<init>(Ljava/util/List;Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary <init> Lnet/minecraft/class_6662;<init>(Ljava/util/List;Lnet/minecraft/class_6880;)V
      official <init> Lesv;<init>(Ljava/util/List;Lji;)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;
    • 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 ConditionalLootFunction.Builder<?> builder(RegistryEntry<Potion> potion)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/function/SetPotionLootFunction;builder(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
      intermediary method_38927 Lnet/minecraft/class_6662;method_38927(Lnet/minecraft/class_6880;)Lnet/minecraft/class_120$class_121;
      official a Lesv;a(Lji;)Lerw$a;