Class EnchantRandomlyLootFunction

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

public class EnchantRandomlyLootFunction extends ConditionalLootFunction
Mappings:
Namespace Name
official djt
intermediary net/minecraft/class_109
named net/minecraft/loot/function/EnchantRandomlyLootFunction
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldjt;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_1031 Lnet/minecraft/class_109;field_1031:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;LOGGER:Lorg/apache/logging/log4j/Logger;
    • enchantments

      final List<Enchantment> enchantments
      Mappings:
      Namespace Name Mixin selector
      official b Ldjt;b:Ljava/util/List;
      intermediary field_1030 Lnet/minecraft/class_109;field_1030:Ljava/util/List;
      named enchantments Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;enchantments:Ljava/util/List;
  • Constructor Details

  • Method Details

    • getType

      public LootFunctionType getType()
      Mappings:
      Namespace Name Mixin selector
      official a Ldka;a()Ldkb;
      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;
    • process

      public ItemStack process(ItemStack stack, LootContext context)
      Specified by:
      process in class ConditionalLootFunction
      Mappings:
      Namespace Name Mixin selector
      official a Ldjz;a(Lbqp;Ldip;)Lbqp;
      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;
    • addEnchantmentToStack

      private static ItemStack addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldjt;a(Lbqp;Lbuj;Ljava/util/Random;)Lbqp;
      intermediary method_26266 Lnet/minecraft/class_109;method_26266(Lnet/minecraft/class_1799;Lnet/minecraft/class_1887;Ljava/util/Random;)Lnet/minecraft/class_1799;
      named addEnchantmentToStack Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;addEnchantmentToStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/enchantment/Enchantment;Ljava/util/Random;)Lnet/minecraft/item/ItemStack;
    • create

      public static EnchantRandomlyLootFunction.Builder create()
      Mappings:
      Namespace Name Mixin selector
      official c Ldjt;c()Ldjt$a;
      intermediary method_35520 Lnet/minecraft/class_109;method_35520()Lnet/minecraft/class_109$class_4954;
      named create Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;create()Lnet/minecraft/loot/function/EnchantRandomlyLootFunction$Builder;
    • builder

      public static ConditionalLootFunction.Builder<?> builder()
      Mappings:
      Namespace Name Mixin selector
      official d Ldjt;d()Ldjz$a;
      intermediary method_489 Lnet/minecraft/class_109;method_489()Lnet/minecraft/class_120$class_121;
      named builder Lnet/minecraft/loot/function/EnchantRandomlyLootFunction;builder()Lnet/minecraft/loot/function/ConditionalLootFunction$Builder;