Package net.minecraft.loot
Class LootTable
java.lang.Object
net.minecraft.loot.LootTable
- Mappings:
Namespace Name named net/minecraft/loot/LootTableintermediary net/minecraft/class_52official evx
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootTable> private final BiFunction<ItemStack, LootContext, ItemStack> static final longstatic final LootTablestatic final com.mojang.serialization.Codec<RegistryEntry<LootTable>> private final List<LootFunction> static final ContextTypeprivate static final Loggerprivate final Optional<Identifier> private final ContextType -
Constructor Summary
ConstructorsConstructorDescriptionLootTable(ContextType type, Optional<Identifier> randomSequenceId, List<LootPool> pools, List<LootFunction> functions) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootTable.Builderbuilder()private ObjectArrayList<ItemStack> generateLoot(LootContext context) voidgenerateLoot(LootContext context, Consumer<ItemStack> lootConsumer) generateLoot(LootWorldContext parameters) generateLoot(LootWorldContext parameters, long seed) voidgenerateLoot(LootWorldContext parameters, long seed, Consumer<ItemStack> lootConsumer) voidgenerateLoot(LootWorldContext parameters, Consumer<ItemStack> lootConsumer) generateLoot(LootWorldContext parameters, Random random) voidgenerateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidgenerateUnprocessedLoot(LootWorldContext parameters, Consumer<ItemStack> lootConsumer) getFreeSlots(Inventory inventory, Random random) getType()processStacks(ServerWorld world, Consumer<ItemStack> consumer) private voidshuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) voidsupplyInventory(Inventory inventory, LootWorldContext parameters, long seed) voidvalidate(LootTableReporter reporter)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/loot/LootTable;LOGGER:Lorg/slf4j/Logger;intermediary field_946Lnet/minecraft/class_52;field_946:Lorg/slf4j/Logger;official fLevx;f:Lorg/slf4j/Logger;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/loot/LootTable;EMPTY:Lnet/minecraft/loot/LootTable;intermediary field_948Lnet/minecraft/class_52;field_948:Lnet/minecraft/class_52;official aLevx;a:Levx;
-
GENERIC
- Mappings:
Namespace Name Mixin selector named GENERICLnet/minecraft/loot/LootTable;GENERIC:Lnet/minecraft/util/context/ContextType;intermediary field_947Lnet/minecraft/class_52;field_947:Lnet/minecraft/class_176;official bLevx;b:Lbaj;
-
DEFAULT_SEED
public static final long DEFAULT_SEED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SEEDLnet/minecraft/loot/LootTable;DEFAULT_SEED:Jintermediary field_49428Lnet/minecraft/class_52;field_49428:Jofficial cLevx;c:J
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/loot/LootTable;CODEC:Lcom/mojang/serialization/Codec;intermediary field_50021Lnet/minecraft/class_52;field_50021:Lcom/mojang/serialization/Codec;official dLevx;d:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/loot/LootTable;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_45796Lnet/minecraft/class_52;field_45796:Lcom/mojang/serialization/Codec;official eLevx;e:Lcom/mojang/serialization/Codec;
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/loot/LootTable;type:Lnet/minecraft/util/context/ContextType;intermediary field_942Lnet/minecraft/class_52;field_942:Lnet/minecraft/class_176;official gLevx;g:Lbaj;
-
randomSequenceId
- Mappings:
Namespace Name Mixin selector named randomSequenceIdLnet/minecraft/loot/LootTable;randomSequenceId:Ljava/util/Optional;intermediary field_44892Lnet/minecraft/class_52;field_44892:Ljava/util/Optional;official hLevx;h:Ljava/util/Optional;
-
pools
- Mappings:
Namespace Name Mixin selector named poolsLnet/minecraft/loot/LootTable;pools:Ljava/util/List;intermediary field_943Lnet/minecraft/class_52;field_943:Ljava/util/List;official iLevx;i:Ljava/util/List;
-
functions
- Mappings:
Namespace Name Mixin selector named functionsLnet/minecraft/loot/LootTable;functions:Ljava/util/List;intermediary field_944Lnet/minecraft/class_52;field_944:Ljava/util/List;official jLevx;j:Ljava/util/List;
-
combinedFunction
- Mappings:
Namespace Name Mixin selector named combinedFunctionLnet/minecraft/loot/LootTable;combinedFunction:Ljava/util/function/BiFunction;intermediary field_945Lnet/minecraft/class_52;field_945:Ljava/util/function/BiFunction;official kLevx;k:Ljava/util/function/BiFunction;
-
-
Constructor Details
-
LootTable
LootTable(ContextType type, Optional<Identifier> randomSequenceId, List<LootPool> pools, List<LootFunction> functions) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/util/context/ContextType;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_52;<init>(Lnet/minecraft/class_176;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)Vofficial <init>Levx;<init>(Lbaj;Ljava/util/Optional;Ljava/util/List;Ljava/util/List;)V
-
-
Method Details
-
processStacks
- Mappings:
Namespace Name Mixin selector named processStacksLnet/minecraft/loot/LootTable;processStacks(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;intermediary method_332Lnet/minecraft/class_52;method_332(Lnet/minecraft/class_3218;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;official aLevx;a(Lard;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
-
generateUnprocessedLoot
- Mappings:
Namespace Name Mixin selector named generateUnprocessedLootLnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootWorldContext;Ljava/util/function/Consumer;)Vintermediary method_51881Lnet/minecraft/class_52;method_51881(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)Vofficial aLevx;a(Levv;Ljava/util/function/Consumer;)V
-
generateUnprocessedLoot
- Mappings:
Namespace Name Mixin selector named generateUnprocessedLootLnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Vintermediary method_328Lnet/minecraft/class_52;method_328(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Vofficial aLevx;a(Levs;Ljava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootWorldContext;JLjava/util/function/Consumer;)Vintermediary method_51880Lnet/minecraft/class_52;method_51880(Lnet/minecraft/class_8567;JLjava/util/function/Consumer;)Vofficial aLevx;a(Levv;JLjava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootWorldContext;Ljava/util/function/Consumer;)Vintermediary method_51882Lnet/minecraft/class_52;method_51882(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)Vofficial bLevx;b(Levv;Ljava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)Vintermediary method_320Lnet/minecraft/class_52;method_320(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Vofficial bLevx;b(Levs;Ljava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootWorldContext;Lnet/minecraft/util/math/random/Random;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_60569Lnet/minecraft/class_52;method_60569(Lnet/minecraft/class_8567;Lnet/minecraft/class_5819;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;official aLevx;a(Levv;Lazh;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootWorldContext;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_51879Lnet/minecraft/class_52;method_51879(Lnet/minecraft/class_8567;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;official aLevx;a(Levv;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootWorldContext;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_51878Lnet/minecraft/class_52;method_51878(Lnet/minecraft/class_8567;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;official aLevx;a(Levv;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_319Lnet/minecraft/class_52;method_319(Lnet/minecraft/class_47;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;official aLevx;a(Levs;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/loot/LootTable;getType()Lnet/minecraft/util/context/ContextType;intermediary method_322Lnet/minecraft/class_52;method_322()Lnet/minecraft/class_176;official aLevx;a()Lbaj;
-
validate
- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/loot/LootTable;validate(Lnet/minecraft/loot/LootTableReporter;)Vintermediary method_330Lnet/minecraft/class_52;method_330(Lnet/minecraft/class_58;)Vofficial aLevx;a(Levy;)V
-
supplyInventory
- Mappings:
Namespace Name Mixin selector named supplyInventoryLnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/loot/context/LootWorldContext;J)Vintermediary method_329Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_8567;J)Vofficial aLevx;a(Lbse;Levv;J)V
-
shuffle
- Mappings:
Namespace Name Mixin selector named shuffleLnet/minecraft/loot/LootTable;shuffle(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/util/math/random/Random;)Vintermediary method_333Lnet/minecraft/class_52;method_333(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/class_5819;)Vofficial aLevx;a(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILazh;)V
-
getFreeSlots
- Mappings:
Namespace Name Mixin selector named getFreeSlotsLnet/minecraft/loot/LootTable;getFreeSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/random/Random;)Ljava/util/List;intermediary method_321Lnet/minecraft/class_52;method_321(Lnet/minecraft/class_1263;Lnet/minecraft/class_5819;)Ljava/util/List;official aLevx;a(Lbse;Lazh;)Ljava/util/List;
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/loot/LootTable;builder()Lnet/minecraft/loot/LootTable$Builder;intermediary method_324Lnet/minecraft/class_52;method_324()Lnet/minecraft/class_52$class_53;official bLevx;b()Levx$a;
-