Class LootTable

java.lang.Object
net.minecraft.loot.LootTable

public class LootTable extends Object
Mappings:
Namespace Name
named net/minecraft/loot/LootTable
intermediary net/minecraft/class_52
official erb
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/loot/LootTable;LOGGER:Lorg/slf4j/Logger;
      intermediary field_946 Lnet/minecraft/class_52;field_946:Lorg/slf4j/Logger;
      official f Lerb;f:Lorg/slf4j/Logger;
    • EMPTY

      public static final LootTable EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/loot/LootTable;EMPTY:Lnet/minecraft/loot/LootTable;
      intermediary field_948 Lnet/minecraft/class_52;field_948:Lnet/minecraft/class_52;
      official a Lerb;a:Lerb;
    • GENERIC

      public static final LootContextType GENERIC
      Mappings:
      Namespace Name Mixin selector
      named GENERIC Lnet/minecraft/loot/LootTable;GENERIC:Lnet/minecraft/loot/context/LootContextType;
      intermediary field_947 Lnet/minecraft/class_52;field_947:Lnet/minecraft/class_176;
      official b Lerb;b:Letq;
    • DEFAULT_SEED

      public static final long DEFAULT_SEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SEED Lnet/minecraft/loot/LootTable;DEFAULT_SEED:J
      intermediary field_49428 Lnet/minecraft/class_52;field_49428:J
      official c Lerb;c:J
    • CODEC

      public static final com.mojang.serialization.Codec<LootTable> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/loot/LootTable;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_50021 Lnet/minecraft/class_52;field_50021:Lcom/mojang/serialization/Codec;
      official d Lerb;d:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<LootTable>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/loot/LootTable;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45796 Lnet/minecraft/class_52;field_45796:Lcom/mojang/serialization/Codec;
      official e Lerb;e:Lcom/mojang/serialization/Codec;
    • type

      private final LootContextType type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/loot/LootTable;type:Lnet/minecraft/loot/context/LootContextType;
      intermediary field_942 Lnet/minecraft/class_52;field_942:Lnet/minecraft/class_176;
      official g Lerb;g:Letq;
    • randomSequenceId

      private final Optional<Identifier> randomSequenceId
      Mappings:
      Namespace Name Mixin selector
      named randomSequenceId Lnet/minecraft/loot/LootTable;randomSequenceId:Ljava/util/Optional;
      intermediary field_44892 Lnet/minecraft/class_52;field_44892:Ljava/util/Optional;
      official h Lerb;h:Ljava/util/Optional;
    • pools

      private final List<LootPool> pools
      Mappings:
      Namespace Name Mixin selector
      named pools Lnet/minecraft/loot/LootTable;pools:Ljava/util/List;
      intermediary field_943 Lnet/minecraft/class_52;field_943:Ljava/util/List;
      official i Lerb;i:Ljava/util/List;
    • functions

      private final List<LootFunction> functions
      Mappings:
      Namespace Name Mixin selector
      named functions Lnet/minecraft/loot/LootTable;functions:Ljava/util/List;
      intermediary field_944 Lnet/minecraft/class_52;field_944:Ljava/util/List;
      official j Lerb;j:Ljava/util/List;
    • combinedFunction

      private final BiFunction<ItemStack,LootContext,ItemStack> combinedFunction
      Mappings:
      Namespace Name Mixin selector
      named combinedFunction Lnet/minecraft/loot/LootTable;combinedFunction:Ljava/util/function/BiFunction;
      intermediary field_945 Lnet/minecraft/class_52;field_945:Ljava/util/function/BiFunction;
      official k Lerb;k:Ljava/util/function/BiFunction;
  • Constructor Details

    • LootTable

      LootTable(LootContextType type, Optional<Identifier> randomSequenceId, List<LootPool> pools, List<LootFunction> functions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/loot/context/LootContextType;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_52;<init>(Lnet/minecraft/class_176;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)V
      official <init> Lerb;<init>(Letq;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)V
  • Method Details

    • processStacks

      public static Consumer<ItemStack> processStacks(ServerWorld world, Consumer<ItemStack> consumer)
      Mappings:
      Namespace Name Mixin selector
      named processStacks Lnet/minecraft/loot/LootTable;processStacks(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
      intermediary method_332 Lnet/minecraft/class_52;method_332(Lnet/minecraft/class_3218;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
      official a Lerb;a(Laqm;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
    • generateUnprocessedLoot

      public void generateUnprocessedLoot(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named generateUnprocessedLoot Lnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootContextParameterSet;Ljava/util/function/Consumer;)V
      intermediary method_51881 Lnet/minecraft/class_52;method_51881(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
      official a Lerb;a(Leqz;Ljava/util/function/Consumer;)V
    • generateUnprocessedLoot

      public void generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named generateUnprocessedLoot Lnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
      intermediary method_328 Lnet/minecraft/class_52;method_328(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)V
      official a Lerb;a(Leqw;Ljava/util/function/Consumer;)V
    • generateLoot

      public void generateLoot(LootContextParameterSet parameters, long seed, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;JLjava/util/function/Consumer;)V
      intermediary method_51880 Lnet/minecraft/class_52;method_51880(Lnet/minecraft/class_8567;JLjava/util/function/Consumer;)V
      official a Lerb;a(Leqz;JLjava/util/function/Consumer;)V
    • generateLoot

      public void generateLoot(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;Ljava/util/function/Consumer;)V
      intermediary method_51882 Lnet/minecraft/class_52;method_51882(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
      official b Lerb;b(Leqz;Ljava/util/function/Consumer;)V
    • generateLoot

      public void generateLoot(LootContext context, Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
      intermediary method_320 Lnet/minecraft/class_52;method_320(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)V
      official b Lerb;b(Leqw;Ljava/util/function/Consumer;)V
    • generateLoot

      public ObjectArrayList<ItemStack> generateLoot(LootContextParameterSet parameters, Random random)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;Lnet/minecraft/util/math/random/Random;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_60569 Lnet/minecraft/class_52;method_60569(Lnet/minecraft/class_8567;Lnet/minecraft/class_5819;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      official a Lerb;a(Leqz;Layo;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • generateLoot

      public ObjectArrayList<ItemStack> generateLoot(LootContextParameterSet parameters, long seed)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_51879 Lnet/minecraft/class_52;method_51879(Lnet/minecraft/class_8567;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      official a Lerb;a(Leqz;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • generateLoot

      public ObjectArrayList<ItemStack> generateLoot(LootContextParameterSet parameters)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_51878 Lnet/minecraft/class_52;method_51878(Lnet/minecraft/class_8567;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      official a Lerb;a(Leqz;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • generateLoot

      private ObjectArrayList<ItemStack> generateLoot(LootContext context)
      Mappings:
      Namespace Name Mixin selector
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_319 Lnet/minecraft/class_52;method_319(Lnet/minecraft/class_47;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      official a Lerb;a(Leqw;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • getType

      public LootContextType getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/loot/LootTable;getType()Lnet/minecraft/loot/context/LootContextType;
      intermediary method_322 Lnet/minecraft/class_52;method_322()Lnet/minecraft/class_176;
      official a Lerb;a()Letq;
    • validate

      public void validate(LootTableReporter reporter)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/loot/LootTable;validate(Lnet/minecraft/loot/LootTableReporter;)V
      intermediary method_330 Lnet/minecraft/class_52;method_330(Lnet/minecraft/class_58;)V
      official a Lerb;a(Lerc;)V
    • supplyInventory

      public void supplyInventory(Inventory inventory, LootContextParameterSet parameters, long seed)
      Mappings:
      Namespace Name Mixin selector
      named supplyInventory Lnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/loot/context/LootContextParameterSet;J)V
      intermediary method_329 Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_8567;J)V
      official a Lerb;a(Lbqa;Leqz;J)V
    • shuffle

      private void shuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random)
      Mappings:
      Namespace Name Mixin selector
      named shuffle Lnet/minecraft/loot/LootTable;shuffle(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/util/math/random/Random;)V
      intermediary method_333 Lnet/minecraft/class_52;method_333(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/class_5819;)V
      official a Lerb;a(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILayo;)V
    • getFreeSlots

      private List<Integer> getFreeSlots(Inventory inventory, Random random)
      Mappings:
      Namespace Name Mixin selector
      named getFreeSlots Lnet/minecraft/loot/LootTable;getFreeSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
      intermediary method_321 Lnet/minecraft/class_52;method_321(Lnet/minecraft/class_1263;Lnet/minecraft/class_5819;)Ljava/util/List;
      official a Lerb;a(Lbqa;Layo;)Ljava/util/List;
    • builder

      public static LootTable.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/loot/LootTable;builder()Lnet/minecraft/loot/LootTable$Builder;
      intermediary method_324 Lnet/minecraft/class_52;method_324()Lnet/minecraft/class_52$class_53;
      official b Lerb;b()Lerb$a;