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
named net/minecraft/loot/function/ReferenceLootFunction
intermediary net/minecraft/class_8492
official esf
  • Field Details

    • LOGGER

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

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

      private final RegistryKey<LootFunction> name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/loot/function/ReferenceLootFunction;name:Lnet/minecraft/registry/RegistryKey;
      intermediary field_44507 Lnet/minecraft/class_8492;field_44507:Lnet/minecraft/class_5321;
      official c Lesf;c:Lakj;
  • Constructor Details

    • ReferenceLootFunction

      private ReferenceLootFunction(List<LootCondition> conditions, RegistryKey<LootFunction> name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/ReferenceLootFunction;<init>(Ljava/util/List;Lnet/minecraft/registry/RegistryKey;)V
      intermediary <init> Lnet/minecraft/class_8492;<init>(Ljava/util/List;Lnet/minecraft/class_5321;)V
      official <init> Lesf;<init>(Ljava/util/List;Lakj;)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 Lesk;b()Lesl;
    • validate

      public void validate(LootTableReporter reporter)
      Specified by:
      validate in interface LootContextAware
      Overrides:
      validate in class ConditionalLootFunction
      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 Leqx;a(Lerc;)V
    • process

      protected 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 Lesj;a(Lcud;Leqw;)Lcud;
    • builder

      public static ConditionalLootFunction.Builder<?> builder(RegistryKey<LootFunction> name)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/function/ReferenceLootFunction;builder(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
      intermediary method_51224 Lnet/minecraft/class_8492;method_51224(Lnet/minecraft/class_5321;)Lnet/minecraft/class_120$class_121;
      official a Lesf;a(Lakj;)Lesj$a;