Class LootPool

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

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

    • CODEC

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

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

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

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

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

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

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

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

    • LootPool

      LootPool(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lecx;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Legk;Legk;)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
      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
  • Method Details

    • supplyOnce

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

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

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

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