Class AndLootFunction

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

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

    • CODEC

      public static final com.mojang.serialization.MapCodec<AndLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/AndLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45834 Lnet/minecraft/class_5641;field_45834:Lcom/mojang/serialization/MapCodec;
      official a Lesc;a:Lcom/mojang/serialization/MapCodec;
    • INLINE_CODEC

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

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

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

    • AndLootFunction

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

    • create

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

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

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

      public LootFunctionType<AndLootFunction> getType()
      Specified by:
      getType in interface LootFunction
      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;