Class ReferenceLootFunction

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

public class ReferenceLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
official eif
intermediary net/minecraft/class_8492
named net/minecraft/loot/function/ReferenceLootFunction
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Leif;b:Lorg/slf4j/Logger;
      intermediary field_44506 Lnet/minecraft/class_8492;field_44506:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/loot/function/ReferenceLootFunction;LOGGER:Lorg/slf4j/Logger;
    • CODEC

      public static final com.mojang.serialization.Codec<ReferenceLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Leif;a:Lcom/mojang/serialization/Codec;
      intermediary field_45828 Lnet/minecraft/class_8492;field_45828:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/loot/function/ReferenceLootFunction;CODEC:Lcom/mojang/serialization/Codec;
    • name

      private final Identifier name
      Mappings:
      Namespace Name Mixin selector
      official c Leif;c:Lahg;
      intermediary field_44507 Lnet/minecraft/class_8492;field_44507:Lnet/minecraft/class_2960;
      named name Lnet/minecraft/loot/function/ReferenceLootFunction;name:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • ReferenceLootFunction

      private ReferenceLootFunction(List<LootCondition> conditions, Identifier name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leif;<init>(Ljava/util/List;Lahg;)V
      intermediary <init> Lnet/minecraft/class_8492;<init>(Ljava/util/List;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/loot/function/ReferenceLootFunction;<init>(Ljava/util/List;Lnet/minecraft/util/Identifier;)V
  • Method Details

    • getType

      public LootFunctionType getType()
      Mappings:
      Namespace Name Mixin selector
      official b Leij;b()Leik;
      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;
    • validate

      public void validate(LootTableReporter reporter)
      Specified by:
      validate in interface LootContextAware
      Overrides:
      validate in class ConditionalLootFunction
      Mappings:
      Namespace Name Mixin selector
      official a Legx;a(Lehf;)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
    • process

      protected ItemStack process(ItemStack stack, LootContext context)
      Specified by:
      process in class ConditionalLootFunction
      Mappings:
      Namespace Name Mixin selector
      official a Leii;a(Lcmy;Legw;)Lcmy;
      intermediary method_522 Lnet/minecraft/class_120;method_522(Lnet/minecraft/class_1799;Lnet/minecraft/class_47;)Lnet/minecraft/class_1799;
      named process Lnet/minecraft/loot/function/ConditionalLootFunction;process(Lnet/minecraft/item/ItemStack;Lnet/minecraft/loot/context/LootContext;)Lnet/minecraft/item/ItemStack;
    • builder

      public static ConditionalLootFunction.Builder<?> builder(Identifier name)
      Mappings:
      Namespace Name Mixin selector
      official a Leif;a(Lahg;)Leii$a;
      intermediary method_51224 Lnet/minecraft/class_8492;method_51224(Lnet/minecraft/class_2960;)Lnet/minecraft/class_120$class_121;
      named builder Lnet/minecraft/loot/function/ReferenceLootFunction;builder(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;