Class LootManager.AndFunction

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

private static class LootManager.AndFunction extends Object implements LootFunction
Mappings:
Namespace Name
official dzk$b
intermediary net/minecraft/class_60$class_5641
named net/minecraft/loot/LootManager$AndFunction
  • Field Details

    • functions

      protected final LootFunction[] functions
      Mappings:
      Namespace Name Mixin selector
      official a Ldzk$b;a:[Leaw;
      intermediary field_27904 Lnet/minecraft/class_60$class_5641;field_27904:[Lnet/minecraft/class_117;
      named functions Lnet/minecraft/loot/LootManager$AndFunction;functions:[Lnet/minecraft/loot/function/LootFunction;
    • applier

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

    • AndFunction

      public AndFunction(LootFunction[] functions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldzk$b;<init>([Leaw;)V
      intermediary <init> Lnet/minecraft/class_60$class_5641;<init>([Lnet/minecraft/class_117;)V
      named <init> Lnet/minecraft/loot/LootManager$AndFunction;<init>([Lnet/minecraft/loot/function/LootFunction;)V
  • Method Details

    • apply

      public ItemStack apply(ItemStack itemStack, LootContext lootContext)
      Specified by:
      apply in interface BiFunction<ItemStack,LootContext,ItemStack>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzk$b;a(Lcfx;Ldzh;)Lcfx;
      intermediary method_32405 Lnet/minecraft/class_60$class_5641;method_32405(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
      named apply Lnet/minecraft/loot/LootManager$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 Ldzi;a(Ldzs;)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 Leaw;b()Leax;
      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;