Class AndFunction

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

public class AndFunction extends Object implements LootFunction
Mappings:
Namespace Name
official eeh
intermediary net/minecraft/class_5641
named net/minecraft/loot/AndFunction
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<AndFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Leeh;a:Lcom/mojang/serialization/Codec;
      intermediary field_45834 Lnet/minecraft/class_5641;field_45834:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/AndFunction;CODEC:Lcom/mojang/serialization/Codec;
    • field_45835

      public static final com.mojang.serialization.Codec<AndFunction> field_45835
      Mappings:
      Namespace Name Mixin selector
      official b Leeh;b:Lcom/mojang/serialization/Codec;
      intermediary field_45835 Lnet/minecraft/class_5641;field_45835:Lcom/mojang/serialization/Codec;
      named field_45835 Lnet/minecraft/loot/AndFunction;field_45835:Lcom/mojang/serialization/Codec;
    • terms

      private final List<LootFunction> terms
      Mappings:
      Namespace Name Mixin selector
      official c Leeh;c:Ljava/util/List;
      intermediary field_27904 Lnet/minecraft/class_5641;field_27904:Ljava/util/List;
      named terms Lnet/minecraft/loot/AndFunction;terms:Ljava/util/List;
    • applier

      private final BiFunction<ItemStack,LootContext,ItemStack> applier
      Mappings:
      Namespace Name Mixin selector
      official d Leeh;d:Ljava/util/function/BiFunction;
      intermediary field_27905 Lnet/minecraft/class_5641;field_27905:Ljava/util/function/BiFunction;
      named applier Lnet/minecraft/loot/AndFunction;applier:Ljava/util/function/BiFunction;
  • Constructor Details

    • AndFunction

      private AndFunction(List<LootFunction> terms)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leeh;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_5641;<init>(Ljava/util/List;)V
      named <init> Lnet/minecraft/loot/AndFunction;<init>(Ljava/util/List;)V
  • Method Details

    • create

      public static AndFunction create(List<LootFunction> terms)
      Mappings:
      Namespace Name Mixin selector
      official a Leeh;a(Ljava/util/List;)Leeh;
      intermediary method_53353 Lnet/minecraft/class_5641;method_53353(Ljava/util/List;)Lnet/minecraft/class_5641;
      named create Lnet/minecraft/loot/AndFunction;create(Ljava/util/List;)Lnet/minecraft/loot/AndFunction;
    • apply

      public ItemStack apply(ItemStack itemStack, LootContext lootContext)
      Specified by:
      apply in interface BiFunction<ItemStack,LootContext,ItemStack>
      Mappings:
      Namespace Name Mixin selector
      official a Leeh;a(Lcjf;Lecq;)Lcjf;
      intermediary method_32405 Lnet/minecraft/class_5641;method_32405(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
      named apply Lnet/minecraft/loot/AndFunction;apply(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
    • validate

      public void validate(LootTableReporter reporter)
      Specified by:
      validate in interface LootContextAware
      Mappings:
      Namespace Name Mixin selector
      official a Lecr;a(Lecz;)V
      intermediary method_292 Lnet/minecraft/class_46;method_292(Lnet/minecraft/class_58;)V
      named validate Lnet/minecraft/loot/context/LootContextAware;validate(Lnet/minecraft/loot/LootTableReporter;)V
    • getType

      public LootFunctionType getType()
      Specified by:
      getType in interface LootFunction
      Mappings:
      Namespace Name Mixin selector
      official b Leed;b()Leee;
      intermediary method_29321 Lnet/minecraft/class_117;method_29321()Lnet/minecraft/class_5339;
      named getType Lnet/minecraft/loot/function/LootFunction;getType()Lnet/minecraft/loot/function/LootFunctionType;