Package net.minecraft.loot
Class LootTable
java.lang.Object
net.minecraft.loot.LootTable
- Mappings:
Namespace Name official ecy
intermediary net/minecraft/class_52
named net/minecraft/loot/LootTable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootTable>
private final BiFunction<ItemStack,
LootContext, ItemStack> static final LootTable
private final List<LootFunction>
static final LootContextType
private static final Logger
private final Optional<Identifier>
private final LootContextType
-
Constructor Summary
ConstructorDescriptionLootTable
(LootContextType type, Optional<Identifier> randomSequenceId, List<LootPool> pools, List<LootFunction> functions) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootTable.Builder
builder()
private ObjectArrayList<ItemStack>
generateLoot
(LootContext context) generateLoot
(LootContextParameterSet parameters) generateLoot
(LootContextParameterSet parameters, long seed) void
generateLoot
(LootContextParameterSet parameters, long seed, Consumer<ItemStack> lootConsumer) void
generateLoot
(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer) void
generateLoot
(LootContext context, Consumer<ItemStack> lootConsumer) void
generateUnprocessedLoot
(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer) void
generateUnprocessedLoot
(LootContext context, Consumer<ItemStack> lootConsumer) getFreeSlots
(Inventory inventory, Random random) getType()
processStacks
(ServerWorld world, Consumer<ItemStack> consumer) private void
shuffle
(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) void
supplyInventory
(Inventory inventory, LootContextParameterSet parameters, long seed) void
validate
(LootTableReporter reporter)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official d
Lecy;d: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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a:Lecy;
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
- Mappings:
Namespace Name Mixin selector official b
Lecy;b:Leez;
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;
-
CODEC
- Mappings:
Namespace Name Mixin selector official c
Lecy;c:Lcom/mojang/serialization/Codec;
intermediary field_45796
Lnet/minecraft/class_52;field_45796:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/loot/LootTable;CODEC:Lcom/mojang/serialization/Codec;
-
type
- Mappings:
Namespace Name Mixin selector official e
Lecy;e:Leez;
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;
-
randomSequenceId
- Mappings:
Namespace Name Mixin selector official f
Lecy;f:Ljava/util/Optional;
intermediary field_44892
Lnet/minecraft/class_52;field_44892:Ljava/util/Optional;
named randomSequenceId
Lnet/minecraft/loot/LootTable;randomSequenceId:Ljava/util/Optional;
-
pools
- Mappings:
Namespace Name Mixin selector official g
Lecy;g:Ljava/util/List;
intermediary field_943
Lnet/minecraft/class_52;field_943:Ljava/util/List;
named pools
Lnet/minecraft/loot/LootTable;pools:Ljava/util/List;
-
functions
- Mappings:
Namespace Name Mixin selector official h
Lecy;h:Ljava/util/List;
intermediary field_944
Lnet/minecraft/class_52;field_944:Ljava/util/List;
named functions
Lnet/minecraft/loot/LootTable;functions:Ljava/util/List;
-
combinedFunction
- Mappings:
Namespace Name Mixin selector official i
Lecy;i: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, Optional<Identifier> randomSequenceId, List<LootPool> pools, List<LootFunction> functions) - Mappings:
Namespace Name Mixin selector official <init>
Lecy;<init>(Leez;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
named <init>
Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/loot/context/LootContextType;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)V
-
-
Method Details
-
processStacks
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lakq;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;
named processStacks
Lnet/minecraft/loot/LootTable;processStacks(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
-
generateUnprocessedLoot
public void generateUnprocessedLoot(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer) - Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecw;Ljava/util/function/Consumer;)V
intermediary method_51881
Lnet/minecraft/class_52;method_51881(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
named generateUnprocessedLoot
Lnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootContextParameterSet;Ljava/util/function/Consumer;)V
-
generateUnprocessedLoot
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecq;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(LootContextParameterSet parameters, long seed, Consumer<ItemStack> lootConsumer) - Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecw;JLjava/util/function/Consumer;)V
intermediary method_51880
Lnet/minecraft/class_52;method_51880(Lnet/minecraft/class_8567;JLjava/util/function/Consumer;)V
named generateLoot
Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;JLjava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector official b
Lecy;b(Lecw;Ljava/util/function/Consumer;)V
intermediary method_51882
Lnet/minecraft/class_52;method_51882(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
named generateLoot
Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;Ljava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector official b
Lecy;b(Lecq;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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecw;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;
named generateLoot
Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecw;)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;
named generateLoot
Lnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContextParameterSet;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecq;)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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a()Leez;
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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lecz;)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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lbgr;Lecw;J)V
intermediary method_329
Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_8567;J)V
named supplyInventory
Lnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/loot/context/LootContextParameterSet;J)V
-
shuffle
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILasc;)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
- Mappings:
Namespace Name Mixin selector official a
Lecy;a(Lbgr;Lasc;)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
- Mappings:
Namespace Name Mixin selector official b
Lecy;b()Lecy$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;
-