Class LootTable.Builder

java.lang.Object
net.minecraft.loot.LootTable.Builder
All Implemented Interfaces:
LootFunctionConsumingBuilder<LootTable.Builder>
Enclosing class:
LootTable

public static class LootTable.Builder extends Object implements LootFunctionConsumingBuilder<LootTable.Builder>
Mappings:
Namespace Name
official dzs$a
intermediary net/minecraft/class_52$class_53
named net/minecraft/loot/LootTable$Builder
  • Field Details

    • pools

      private final List<LootPool> pools
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a:Ljava/util/List;
      intermediary field_949 Lnet/minecraft/class_52$class_53;field_949:Ljava/util/List;
      named pools Lnet/minecraft/loot/LootTable$Builder;pools:Ljava/util/List;
    • functions

      private final List<LootFunction> functions
      Mappings:
      Namespace Name Mixin selector
      official b Ldzs$a;b:Ljava/util/List;
      intermediary field_951 Lnet/minecraft/class_52$class_53;field_951:Ljava/util/List;
      named functions Lnet/minecraft/loot/LootTable$Builder;functions:Ljava/util/List;
    • type

      private LootContextType type
      Mappings:
      Namespace Name Mixin selector
      official c Ldzs$a;c:Lebu;
      intermediary field_950 Lnet/minecraft/class_52$class_53;field_950:Lnet/minecraft/class_176;
      named type Lnet/minecraft/loot/LootTable$Builder;type:Lnet/minecraft/loot/context/LootContextType;
    • randomSequenceId

      @Nullable private @Nullable Identifier randomSequenceId
      Mappings:
      Namespace Name Mixin selector
      official d Ldzs$a;d:Lacq;
      intermediary field_44893 Lnet/minecraft/class_52$class_53;field_44893:Lnet/minecraft/class_2960;
      named randomSequenceId Lnet/minecraft/loot/LootTable$Builder;randomSequenceId:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • pool

      public LootTable.Builder pool(LootPool.Builder poolBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a(Ldzr$a;)Ldzs$a;
      intermediary method_336 Lnet/minecraft/class_52$class_53;method_336(Lnet/minecraft/class_55$class_56;)Lnet/minecraft/class_52$class_53;
      named pool Lnet/minecraft/loot/LootTable$Builder;pool(Lnet/minecraft/loot/LootPool$Builder;)Lnet/minecraft/loot/LootTable$Builder;
    • type

      public LootTable.Builder type(LootContextType context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a(Lebu;)Ldzs$a;
      intermediary method_334 Lnet/minecraft/class_52$class_53;method_334(Lnet/minecraft/class_176;)Lnet/minecraft/class_52$class_53;
      named type Lnet/minecraft/loot/LootTable$Builder;type(Lnet/minecraft/loot/context/LootContextType;)Lnet/minecraft/loot/LootTable$Builder;
    • randomSequenceId

      public LootTable.Builder randomSequenceId(Identifier randomSequenceId)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a(Lacq;)Ldzs$a;
      intermediary method_51883 Lnet/minecraft/class_52$class_53;method_51883(Lnet/minecraft/class_2960;)Lnet/minecraft/class_52$class_53;
      named randomSequenceId Lnet/minecraft/loot/LootTable$Builder;randomSequenceId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/loot/LootTable$Builder;
    • apply

      public LootTable.Builder apply(LootFunction.Builder builder)
      Specified by:
      apply in interface LootFunctionConsumingBuilder<LootTable.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a(Leaz$a;)Ldzs$a;
      intermediary method_335 Lnet/minecraft/class_52$class_53;method_335(Lnet/minecraft/class_117$class_118;)Lnet/minecraft/class_52$class_53;
      named apply Lnet/minecraft/loot/LootTable$Builder;apply(Lnet/minecraft/loot/function/LootFunction$Builder;)Lnet/minecraft/loot/LootTable$Builder;
    • getThisFunctionConsumingBuilder

      public LootTable.Builder getThisFunctionConsumingBuilder()
      Specified by:
      getThisFunctionConsumingBuilder in interface LootFunctionConsumingBuilder<LootTable.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzs$a;a()Ldzs$a;
      intermediary method_337 Lnet/minecraft/class_52$class_53;method_337()Lnet/minecraft/class_52$class_53;
      named getThisFunctionConsumingBuilder Lnet/minecraft/loot/LootTable$Builder;getThisFunctionConsumingBuilder()Lnet/minecraft/loot/LootTable$Builder;
    • build

      public LootTable build()
      Mappings:
      Namespace Name Mixin selector
      official b Ldzs$a;b()Ldzs;
      intermediary method_338 Lnet/minecraft/class_52$class_53;method_338()Lnet/minecraft/class_52;
      named build Lnet/minecraft/loot/LootTable$Builder;build()Lnet/minecraft/loot/LootTable;