Class LootPool

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

public class LootPool extends Object
Mappings:
Namespace Name
official ehd
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 Lehd;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 Lehd;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 Lehd;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 Lehd;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 Lehd;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 Lehd;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 Lehd;g:Lekq;
      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 Lehd;h:Lekq;
      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> Lehd;<init>(Ljava/util/List;Ljava/util/List;Ljava/util/List;Lekq;Lekq;)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 Lehd;b(Ljava/util/function/Consumer;Legw;)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 Lehd;a(Ljava/util/function/Consumer;Legw;)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 Lehd;a(Lehf;)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 Lehd;a()Lehd$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;