Class LootPool

java.lang.Object
net.minecraft.loot.LootPool

public class LootPool extends Object
Mappings:
Namespace Name
named net/minecraft/loot/LootPool
intermediary net/minecraft/class_55
official eqn
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<LootPool> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/LootPool;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45795 Lnet/minecraft/class_55;field_45795:Lcom/mojang/serialization/Codec;
      official a Leqn;a:Lcom/mojang/serialization/Codec;
    • entries

      private final List<LootPoolEntry> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/loot/LootPool;entries:Ljava/util/List;
      intermediary field_953 Lnet/minecraft/class_55;field_953:Ljava/util/List;
      official b Leqn;b:Ljava/util/List;
    • conditions

      private final List<LootCondition> conditions
      Mappings:
      Namespace Name Mixin selector
      named conditions Lnet/minecraft/loot/LootPool;conditions:Ljava/util/List;
      intermediary field_954 Lnet/minecraft/class_55;field_954:Ljava/util/List;
      official c Leqn;c:Ljava/util/List;
    • predicate

      private final Predicate<LootContext> predicate
      Mappings:
      Namespace Name Mixin selector
      named predicate Lnet/minecraft/loot/LootPool;predicate:Ljava/util/function/Predicate;
      intermediary field_955 Lnet/minecraft/class_55;field_955:Ljava/util/function/Predicate;
      official d Leqn;d:Ljava/util/function/Predicate;
    • functions

      private final List<LootFunction> functions
      Mappings:
      Namespace Name Mixin selector
      named functions Lnet/minecraft/loot/LootPool;functions:Ljava/util/List;
      intermediary field_956 Lnet/minecraft/class_55;field_956:Ljava/util/List;
      official e Leqn;e:Ljava/util/List;
    • javaFunctions

      private final BiFunction<ItemStack,LootContext,ItemStack> javaFunctions
      Mappings:
      Namespace Name Mixin selector
      named javaFunctions Lnet/minecraft/loot/LootPool;javaFunctions:Ljava/util/function/BiFunction;
      intermediary field_952 Lnet/minecraft/class_55;field_952:Ljava/util/function/BiFunction;
      official f Leqn;f:Ljava/util/function/BiFunction;
    • rolls

      private final LootNumberProvider rolls
      Mappings:
      Namespace Name Mixin selector
      named rolls Lnet/minecraft/loot/LootPool;rolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
      intermediary field_957 Lnet/minecraft/class_55;field_957:Lnet/minecraft/class_5658;
      official g Leqn;g:Leuo;
    • bonusRolls

      private final LootNumberProvider bonusRolls
      Mappings:
      Namespace Name Mixin selector
      named bonusRolls Lnet/minecraft/loot/LootPool;bonusRolls:Lnet/minecraft/loot/provider/number/LootNumberProvider;
      intermediary field_958 Lnet/minecraft/class_55;field_958:Lnet/minecraft/class_5658;
      official h Leqn;h:Leuo;
  • Constructor Details

    • LootPool

      LootPool(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/LootPool;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Lnet/minecraft/loot/provider/number/LootNumberProvider;Lnet/minecraft/loot/provider/number/LootNumberProvider;)V
      intermediary <init> Lnet/minecraft/class_55;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Lnet/minecraft/class_5658;Lnet/minecraft/class_5658;)V
      official <init> Leqn;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Leuo;Leuo;)V
  • Method Details

    • supplyOnce

      private void supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      named supplyOnce Lnet/minecraft/loot/LootPool;supplyOnce(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
      intermediary method_345 Lnet/minecraft/class_55;method_345(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
      official b Leqn;b(Ljava/util/function/Consumer;Leqj;)V
    • addGeneratedLoot

      public void addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      named addGeneratedLoot Lnet/minecraft/loot/LootPool;addGeneratedLoot(Ljava/util/function/Consumer;Lnet/minecraft/loot/context/LootContext;)V
      intermediary method_341 Lnet/minecraft/class_55;method_341(Ljava/util/function/Consumer;Lnet/minecraft/class_47;)V
      official a Leqn;a(Ljava/util/function/Consumer;Leqj;)V
    • validate

      public void validate(LootTableReporter reporter)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/loot/LootPool;validate(Lnet/minecraft/loot/LootTableReporter;)V
      intermediary method_349 Lnet/minecraft/class_55;method_349(Lnet/minecraft/class_58;)V
      official a Leqn;a(Leqp;)V
    • builder

      public static LootPool.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/LootPool;builder()Lnet/minecraft/loot/LootPool$Builder;
      intermediary method_347 Lnet/minecraft/class_55;method_347()Lnet/minecraft/class_55$class_56;
      official a Leqn;a()Leqn$a;