Class LootTable

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

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

    • LOGGER

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

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

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

      final LootContextType type
      Mappings:
      Namespace Name Mixin selector
      official d Ldsg;d:Lduj;
      intermediary field_942 Lnet/minecraft/class_52;field_942:Lnet/minecraft/class_176;
      named type Lnet/minecraft/loot/LootTable;type:Lnet/minecraft/loot/context/LootContextType;
    • pools

      final LootPool[] pools
      Mappings:
      Namespace Name Mixin selector
      official e Ldsg;e:[Ldsf;
      intermediary field_943 Lnet/minecraft/class_52;field_943:[Lnet/minecraft/class_55;
      named pools Lnet/minecraft/loot/LootTable;pools:[Lnet/minecraft/loot/LootPool;
    • functions

      final LootFunction[] functions
      Mappings:
      Namespace Name Mixin selector
      official f Ldsg;f:[Ldto;
      intermediary field_944 Lnet/minecraft/class_52;field_944:[Lnet/minecraft/class_117;
      named functions Lnet/minecraft/loot/LootTable;functions:[Lnet/minecraft/loot/function/LootFunction;
    • combinedFunction

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

    • LootTable

      LootTable(LootContextType type, LootPool[] pools, LootFunction[] functions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldsg;<init>(Lduj;[Ldsf;[Ldto;)V
      intermediary <init> Lnet/minecraft/class_52;<init>(Lnet/minecraft/class_176;[Lnet/minecraft/class_55;[Lnet/minecraft/class_117;)V
      named <init> Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/loot/context/LootContextType;[Lnet/minecraft/loot/LootPool;[Lnet/minecraft/loot/function/LootFunction;)V
  • Method Details

    • processStacks

      public static Consumer<ItemStack> processStacks(Consumer<ItemStack> lootConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsg;a(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
      intermediary method_332 Lnet/minecraft/class_52;method_332(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
      named processStacks Lnet/minecraft/loot/LootTable;processStacks(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
    • generateUnprocessedLoot

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

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

      public ObjectArrayList<ItemStack> generateLoot(LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsg;a(Ldsd;)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;
      named generateLoot Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • getType

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

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

      public void supplyInventory(Inventory inventory, LootContext context)
      Mappings:
      Namespace Name Mixin selector
      official a Ldsg;a(Lbac;Ldsd;)V
      intermediary method_329 Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_47;)V
      named supplyInventory Lnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/loot/context/LootContext;)V
    • shuffle

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

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

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