Package net.minecraft.loot
Class LootTable
java.lang.Object
net.minecraft.loot.LootTable
- Mappings:
Namespace Name official dzpintermediary net/minecraft/class_52named net/minecraft/loot/LootTable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,LootContext, ItemStack> static final LootTablestatic final Identifier(package private) final Identifier(package private) final LootFunction[]static final LootContextType(package private) static final Logger(package private) final LootPool[](package private) final LootContextType -
Constructor Summary
ConstructorsConstructorDescriptionLootTable(LootContextType type, Identifier identifier, LootPool[] lootPool, LootFunction[] lootFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootTable.Builderbuilder()private ObjectArrayList<ItemStack>generateLoot(LootContext context) voidgenerateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidgenerateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) getFreeSlots(Inventory inventory, Random random) getType()method_51878(class_8567 class_8567) method_51879(class_8567 class_8567, long long2) voidmethod_51880(class_8567 class_8567, long long2, Consumer<ItemStack> consumer) voidmethod_51881(class_8567 class_8567, Consumer<ItemStack> consumer) voidmethod_51882(class_8567 class_8567, Consumer<ItemStack> consumer) processStacks(ServerWorld serverWorld, Consumer<ItemStack> consumer) private voidshuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) voidsupplyInventory(Inventory inventory, class_8567 class_8567, long long2) voidvalidate(LootTableReporter reporter)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official dLdzp;d:Lorg/slf4j/Logger;intermediary field_946Lnet/minecraft/class_52;field_946:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/loot/LootTable;LOGGER:Lorg/slf4j/Logger;
-
field_44891
- Mappings:
Namespace Name Mixin selector official aLdzp;a:Lacq;intermediary field_44891Lnet/minecraft/class_52;field_44891:Lnet/minecraft/class_2960;named field_44891Lnet/minecraft/loot/LootTable;field_44891:Lnet/minecraft/util/Identifier;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official bLdzp;b:Ldzp;intermediary field_948Lnet/minecraft/class_52;field_948:Lnet/minecraft/class_52;named EMPTYLnet/minecraft/loot/LootTable;EMPTY:Lnet/minecraft/loot/LootTable;
-
GENERIC
- Mappings:
Namespace Name Mixin selector official cLdzp;c:Lebr;intermediary field_947Lnet/minecraft/class_52;field_947:Lnet/minecraft/class_176;named GENERICLnet/minecraft/loot/LootTable;GENERIC:Lnet/minecraft/loot/context/LootContextType;
-
type
- Mappings:
Namespace Name Mixin selector official eLdzp;e:Lebr;intermediary field_942Lnet/minecraft/class_52;field_942:Lnet/minecraft/class_176;named typeLnet/minecraft/loot/LootTable;type:Lnet/minecraft/loot/context/LootContextType;
-
field_44892
- Mappings:
Namespace Name Mixin selector official fLdzp;f:Lacq;intermediary field_44892Lnet/minecraft/class_52;field_44892:Lnet/minecraft/class_2960;named field_44892Lnet/minecraft/loot/LootTable;field_44892:Lnet/minecraft/util/Identifier;
-
pools
- Mappings:
Namespace Name Mixin selector official gLdzp;g:[Ldzo;intermediary field_943Lnet/minecraft/class_52;field_943:[Lnet/minecraft/class_55;named poolsLnet/minecraft/loot/LootTable;pools:[Lnet/minecraft/loot/LootPool;
-
functions
- Mappings:
Namespace Name Mixin selector official hLdzp;h:[Leaw;intermediary field_944Lnet/minecraft/class_52;field_944:[Lnet/minecraft/class_117;named functionsLnet/minecraft/loot/LootTable;functions:[Lnet/minecraft/loot/function/LootFunction;
-
combinedFunction
- Mappings:
Namespace Name Mixin selector official iLdzp;i:Ljava/util/function/BiFunction;intermediary field_945Lnet/minecraft/class_52;field_945:Ljava/util/function/BiFunction;named combinedFunctionLnet/minecraft/loot/LootTable;combinedFunction:Ljava/util/function/BiFunction;
-
-
Constructor Details
-
LootTable
LootTable(LootContextType type, Identifier identifier, LootPool[] lootPool, LootFunction[] lootFunction) - Mappings:
Namespace Name Mixin selector official <init>Ldzp;<init>(Lebr;Lacq;[Ldzo;[Leaw;)Vintermediary <init>Lnet/minecraft/class_52;<init>(Lnet/minecraft/class_176;Lnet/minecraft/class_2960;[Lnet/minecraft/class_55;[Lnet/minecraft/class_117;)Vnamed <init>Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/loot/context/LootContextType;Lnet/minecraft/util/Identifier;[Lnet/minecraft/loot/LootPool;[Lnet/minecraft/loot/function/LootFunction;)V
-
-
Method Details
-
processStacks
public static Consumer<ItemStack> processStacks(ServerWorld serverWorld, Consumer<ItemStack> consumer) - Mappings:
Namespace Name Mixin selector official aLdzp;a(Laif;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;named processStacksLnet/minecraft/loot/LootTable;processStacks(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Consumer;)Ljava/util/function/Consumer;
-
method_51881
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzn;Ljava/util/function/Consumer;)Vintermediary method_51881Lnet/minecraft/class_52;method_51881(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)Vnamed method_51881Lnet/minecraft/loot/LootTable;method_51881(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
-
generateUnprocessedLoot
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzh;Ljava/util/function/Consumer;)Vintermediary method_328Lnet/minecraft/class_52;method_328(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Vnamed generateUnprocessedLootLnet/minecraft/loot/LootTable;generateUnprocessedLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
-
method_51880
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzn;JLjava/util/function/Consumer;)Vintermediary method_51880Lnet/minecraft/class_52;method_51880(Lnet/minecraft/class_8567;JLjava/util/function/Consumer;)Vnamed method_51880Lnet/minecraft/loot/LootTable;method_51880(Lnet/minecraft/class_8567;JLjava/util/function/Consumer;)V
-
method_51882
- Mappings:
Namespace Name Mixin selector official bLdzp;b(Ldzn;Ljava/util/function/Consumer;)Vintermediary method_51882Lnet/minecraft/class_52;method_51882(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)Vnamed method_51882Lnet/minecraft/loot/LootTable;method_51882(Lnet/minecraft/class_8567;Ljava/util/function/Consumer;)V
-
generateLoot
- Mappings:
Namespace Name Mixin selector official bLdzp;b(Ldzh;Ljava/util/function/Consumer;)Vintermediary method_320Lnet/minecraft/class_52;method_320(Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Vnamed generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;Ljava/util/function/Consumer;)V
-
method_51879
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzn;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;named method_51879Lnet/minecraft/loot/LootTable;method_51879(Lnet/minecraft/class_8567;J)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
method_51878
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzn;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_51878Lnet/minecraft/class_52;method_51878(Lnet/minecraft/class_8567;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;named method_51878Lnet/minecraft/loot/LootTable;method_51878(Lnet/minecraft/class_8567;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
generateLoot
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzh;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary method_319Lnet/minecraft/class_52;method_319(Lnet/minecraft/class_47;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;)Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
getType
- Mappings:
Namespace Name Mixin selector official aLdzp;a()Lebr;intermediary method_322Lnet/minecraft/class_52;method_322()Lnet/minecraft/class_176;named getTypeLnet/minecraft/loot/LootTable;getType()Lnet/minecraft/loot/context/LootContextType;
-
validate
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Ldzs;)Vintermediary method_330Lnet/minecraft/class_52;method_330(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/LootTable;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
supplyInventory
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Lbdp;Ldzn;J)Vintermediary method_329Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_8567;J)Vnamed supplyInventoryLnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/class_8567;J)V
-
shuffle
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILapf;)Vintermediary method_333Lnet/minecraft/class_52;method_333(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/class_5819;)Vnamed shuffleLnet/minecraft/loot/LootTable;shuffle(Lit/unimi/dsi/fastutil/objects/ObjectArrayList;ILnet/minecraft/util/math/random/Random;)V
-
getFreeSlots
- Mappings:
Namespace Name Mixin selector official aLdzp;a(Lbdp;Lapf;)Ljava/util/List;intermediary method_321Lnet/minecraft/class_52;method_321(Lnet/minecraft/class_1263;Lnet/minecraft/class_5819;)Ljava/util/List;named getFreeSlotsLnet/minecraft/loot/LootTable;getFreeSlots(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
-
builder
- Mappings:
Namespace Name Mixin selector official bLdzp;b()Ldzp$a;intermediary method_324Lnet/minecraft/class_52;method_324()Lnet/minecraft/class_52$class_53;named builderLnet/minecraft/loot/LootTable;builder()Lnet/minecraft/loot/LootTable$Builder;
-