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 etq
  • 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 Letq;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 Letq;b:Lub;
  • 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> Letq;<init>(Ljava/util/List;Lub;)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 Letf;b()Letg;
    • 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 Lete;a(Lcuq;Lerr;)Lcuq;
    • 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 Letq;a(Lub;)Lete$a;