Class SetCustomDataLootFunction

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

public class SetCustomDataLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
named net/minecraft/loot/function/SetCustomDataLootFunction
intermediary net/minecraft/class_159
official esj
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SetCustomDataLootFunction> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/function/SetCustomDataLootFunction;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_45849 Lnet/minecraft/class_159;field_45849:Lcom/mojang/serialization/MapCodec;
      official a Lesj;a:Lcom/mojang/serialization/MapCodec;
    • nbt

      private final NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      named nbt Lnet/minecraft/loot/function/SetCustomDataLootFunction;nbt:Lnet/minecraft/nbt/NbtCompound;
      intermediary field_1138 Lnet/minecraft/class_159;field_1138:Lnet/minecraft/class_2487;
      official b Lesj;b:Lus;
  • Constructor Details

    • SetCustomDataLootFunction

      private SetCustomDataLootFunction(List<LootCondition> conditions, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/function/SetCustomDataLootFunction;<init>(Ljava/util/List;Lnet/minecraft/nbt/NbtCompound;)V
      intermediary <init> Lnet/minecraft/class_159;<init>(Ljava/util/List;Lnet/minecraft/class_2487;)V
      official <init> Lesj;<init>(Ljava/util/List;Lus;)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 Lerx;b()Lery;
    • process

      public 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 Lerw;a(Lcur;Leqk;)Lcur;
    • builder

      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/function/SetCustomDataLootFunction;builder(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;
      intermediary method_57654 Lnet/minecraft/class_159;method_57654(Lnet/minecraft/class_2487;)Lnet/minecraft/class_120$class_121;
      official a Lesj;a(Lus;)Lerw$a;