Class EnchantWithLevelsLootFunction.Builder

All Implemented Interfaces:
LootConditionConsumingBuilder<EnchantWithLevelsLootFunction.Builder>, LootFunction.Builder
Enclosing class:
EnchantWithLevelsLootFunction

public static class EnchantWithLevelsLootFunction.Builder extends ConditionalLootFunction.Builder<EnchantWithLevelsLootFunction.Builder>
Mappings:
Namespace Name
official dmh$a
intermediary net/minecraft/class_106$class_107
named net/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder
  • Field Details

    • range

      private final LootNumberProvider range
      Mappings:
      Namespace Name Mixin selector
      official a Ldmh$a;a:Ldoq;
      intermediary field_1028 Lnet/minecraft/class_106$class_107;field_1028:Lnet/minecraft/class_5658;
      named range Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;range:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • treasureEnchantmentsAllowed

      private boolean treasureEnchantmentsAllowed
      Mappings:
      Namespace Name Mixin selector
      official b Ldmh$a;b:Z
      intermediary field_1029 Lnet/minecraft/class_106$class_107;field_1029:Z
      named treasureEnchantmentsAllowed Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;treasureEnchantmentsAllowed:Z
  • Constructor Details

    • Builder

      public Builder(LootNumberProvider range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldmh$a;<init>(Ldoq;)V
      intermediary <init> Lnet/minecraft/class_106$class_107;<init>(Lnet/minecraft/class_5658;)V
      named <init> Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;<init>(Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
  • Method Details

    • getThisBuilder

      protected EnchantWithLevelsLootFunction.Builder getThisBuilder()
      Specified by:
      getThisBuilder in class ConditionalLootFunction.Builder<EnchantWithLevelsLootFunction.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Ldmh$a;a()Ldmh$a;
      intermediary method_483 Lnet/minecraft/class_106$class_107;method_483()Lnet/minecraft/class_106$class_107;
      named getThisBuilder Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;getThisBuilder()Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;
    • allowTreasureEnchantments

      public EnchantWithLevelsLootFunction.Builder allowTreasureEnchantments()
      Mappings:
      Namespace Name Mixin selector
      official e Ldmh$a;e()Ldmh$a;
      intermediary method_484 Lnet/minecraft/class_106$class_107;method_484()Lnet/minecraft/class_106$class_107;
      named allowTreasureEnchantments Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;allowTreasureEnchantments()Lnet/minecraft/loot/function/EnchantWithLevelsLootFunction$Builder;
    • build

      public LootFunction build()
      Mappings:
      Namespace Name Mixin selector
      official b Ldmn$a;b()Ldmn;
      intermediary method_515 Lnet/minecraft/class_117$class_118;method_515()Lnet/minecraft/class_117;
      named build Lnet/minecraft/loot/function/LootFunction$Builder;build()Lnet/minecraft/loot/function/LootFunction;