Class LootingEnchantLootFunction.Builder

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

public static class LootingEnchantLootFunction.Builder extends ConditionalLootFunction.Builder<LootingEnchantLootFunction.Builder>
Mappings:
Namespace Name
official dmq$a
intermediary net/minecraft/class_125$class_126
named net/minecraft/loot/function/LootingEnchantLootFunction$Builder
  • Field Details

    • countRange

      private final LootNumberProvider countRange
      Mappings:
      Namespace Name Mixin selector
      official a Ldmq$a;a:Ldoq;
      intermediary field_1084 Lnet/minecraft/class_125$class_126;field_1084:Lnet/minecraft/class_5658;
      named countRange Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;countRange:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • limit

      private int limit
      Mappings:
      Namespace Name Mixin selector
      official b Ldmq$a;b:I
      intermediary field_1085 Lnet/minecraft/class_125$class_126;field_1085:I
      named limit Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;limit:I
  • Constructor Details

    • Builder

      public Builder(LootNumberProvider countRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldmq$a;<init>(Ldoq;)V
      intermediary <init> Lnet/minecraft/class_125$class_126;<init>(Lnet/minecraft/class_5658;)V
      named <init> Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;<init>(Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
  • Method Details

    • getThisBuilder

      protected LootingEnchantLootFunction.Builder getThisBuilder()
      Specified by:
      getThisBuilder in class ConditionalLootFunction.Builder<LootingEnchantLootFunction.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Ldmq$a;a()Ldmq$a;
      intermediary method_552 Lnet/minecraft/class_125$class_126;method_552()Lnet/minecraft/class_125$class_126;
      named getThisBuilder Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;getThisBuilder()Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;
    • withLimit

      public LootingEnchantLootFunction.Builder withLimit(int limit)
      Mappings:
      Namespace Name Mixin selector
      official a Ldmq$a;a(I)Ldmq$a;
      intermediary method_551 Lnet/minecraft/class_125$class_126;method_551(I)Lnet/minecraft/class_125$class_126;
      named withLimit Lnet/minecraft/loot/function/LootingEnchantLootFunction$Builder;withLimit(I)Lnet/minecraft/loot/function/LootingEnchantLootFunction$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;