Class LootPool.Builder

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

Mappings:
Namespace Name
official ehd$a
intermediary net/minecraft/class_55$class_56
named net/minecraft/loot/LootPool$Builder
  • Field Details

    • entries

      private final ImmutableList.Builder<LootPoolEntry> entries
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_960 Lnet/minecraft/class_55$class_56;field_960:Lcom/google/common/collect/ImmutableList$Builder;
      named entries Lnet/minecraft/loot/LootPool$Builder;entries:Lcom/google/common/collect/ImmutableList$Builder;
    • conditions

      private final ImmutableList.Builder<LootCondition> conditions
      Mappings:
      Namespace Name Mixin selector
      official b Lehd$a;b:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_963 Lnet/minecraft/class_55$class_56;field_963:Lcom/google/common/collect/ImmutableList$Builder;
      named conditions Lnet/minecraft/loot/LootPool$Builder;conditions:Lcom/google/common/collect/ImmutableList$Builder;
    • functions

      private final ImmutableList.Builder<LootFunction> functions
      Mappings:
      Namespace Name Mixin selector
      official c Lehd$a;c:Lcom/google/common/collect/ImmutableList$Builder;
      intermediary field_961 Lnet/minecraft/class_55$class_56;field_961:Lcom/google/common/collect/ImmutableList$Builder;
      named functions Lnet/minecraft/loot/LootPool$Builder;functions:Lcom/google/common/collect/ImmutableList$Builder;
    • rolls

      private LootNumberProvider rolls
      Mappings:
      Namespace Name Mixin selector
      official d Lehd$a;d:Lekq;
      intermediary field_959 Lnet/minecraft/class_55$class_56;field_959:Lnet/minecraft/class_5658;
      named rolls Lnet/minecraft/loot/LootPool$Builder;rolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
    • bonusRollsRange

      private LootNumberProvider bonusRollsRange
      Mappings:
      Namespace Name Mixin selector
      official e Lehd$a;e:Lekq;
      intermediary field_962 Lnet/minecraft/class_55$class_56;field_962:Lnet/minecraft/class_5658;
      named bonusRollsRange Lnet/minecraft/loot/LootPool$Builder;bonusRollsRange:Lnet/minecraft/loot/provider/number/LootNumberProvider;
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • rolls

      public LootPool.Builder rolls(LootNumberProvider rolls)
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a(Lekq;)Lehd$a;
      intermediary method_352 Lnet/minecraft/class_55$class_56;method_352(Lnet/minecraft/class_5658;)Lnet/minecraft/class_55$class_56;
      named rolls Lnet/minecraft/loot/LootPool$Builder;rolls(Lnet/minecraft/loot/provider/number/LootNumberProvider;)Lnet/minecraft/loot/LootPool$Builder;
    • getThisFunctionConsumingBuilder

      public LootPool.Builder getThisFunctionConsumingBuilder()
      Specified by:
      getThisFunctionConsumingBuilder in interface LootFunctionConsumingBuilder<LootPool.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a()Lehd$a;
      intermediary method_354 Lnet/minecraft/class_55$class_56;method_354()Lnet/minecraft/class_55$class_56;
      named getThisFunctionConsumingBuilder Lnet/minecraft/loot/LootPool$Builder;getThisFunctionConsumingBuilder()Lnet/minecraft/loot/LootPool$Builder;
    • bonusRolls

      public LootPool.Builder bonusRolls(LootNumberProvider bonusRolls)
      Mappings:
      Namespace Name Mixin selector
      official b Lehd$a;b(Lekq;)Lehd$a;
      intermediary method_35509 Lnet/minecraft/class_55$class_56;method_35509(Lnet/minecraft/class_5658;)Lnet/minecraft/class_55$class_56;
      named bonusRolls Lnet/minecraft/loot/LootPool$Builder;bonusRolls(Lnet/minecraft/loot/provider/number/LootNumberProvider;)Lnet/minecraft/loot/LootPool$Builder;
    • with

      public LootPool.Builder with(LootPoolEntry.Builder<?> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a(Lehp$a;)Lehd$a;
      intermediary method_351 Lnet/minecraft/class_55$class_56;method_351(Lnet/minecraft/class_79$class_80;)Lnet/minecraft/class_55$class_56;
      named with Lnet/minecraft/loot/LootPool$Builder;with(Lnet/minecraft/loot/entry/LootPoolEntry$Builder;)Lnet/minecraft/loot/LootPool$Builder;
    • conditionally

      public LootPool.Builder conditionally(LootCondition.Builder builder)
      Specified by:
      conditionally in interface LootConditionConsumingBuilder<LootPool.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a(Lejv$a;)Lehd$a;
      intermediary method_356 Lnet/minecraft/class_55$class_56;method_356(Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_55$class_56;
      named conditionally Lnet/minecraft/loot/LootPool$Builder;conditionally(Lnet/minecraft/loot/condition/LootCondition$Builder;)Lnet/minecraft/loot/LootPool$Builder;
    • apply

      public LootPool.Builder apply(LootFunction.Builder builder)
      Specified by:
      apply in interface LootFunctionConsumingBuilder<LootPool.Builder>
      Mappings:
      Namespace Name Mixin selector
      official a Lehd$a;a(Leij$a;)Lehd$a;
      intermediary method_353 Lnet/minecraft/class_55$class_56;method_353(Lnet/minecraft/class_117$class_118;)Lnet/minecraft/class_55$class_56;
      named apply Lnet/minecraft/loot/LootPool$Builder;apply(Lnet/minecraft/loot/function/LootFunction$Builder;)Lnet/minecraft/loot/LootPool$Builder;
    • build

      public LootPool build()
      Mappings:
      Namespace Name Mixin selector
      official b Lehd$a;b()Lehd;
      intermediary method_355 Lnet/minecraft/class_55$class_56;method_355()Lnet/minecraft/class_55;
      named build Lnet/minecraft/loot/LootPool$Builder;build()Lnet/minecraft/loot/LootPool;