类 LootTable
- java.lang.Object
-
- net.minecraft.loot.LootTable
-
public class LootTable extends Object
- Mappings:
Namespace Name official dhsintermediary net/minecraft/class_52named net/minecraft/loot/LootTable
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLootTable.Builderstatic classLootTable.Serializer
-
字段概要
字段 修饰符和类型 字段 说明 private BiFunction<ItemStack,LootContext,ItemStack>combinedFunctionstatic LootTableEMPTYprivate LootFunction[]functionsstatic LootContextTypeGENERICprivate static LoggerLOGGERprivate LootPool[]poolsprivate LootContextTypetype
-
构造器概要
构造器 限定符 构造器 说明 privateLootTable(LootContextType type, LootPool[] pools, LootFunction[] functions)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static LootTable.Builderbuilder()List<ItemStack>generateLoot(LootContext context)voidgenerateLoot(LootContext context, Consumer<ItemStack> lootConsumer)voidgenerateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer)private List<Integer>getFreeSlots(Inventory inventory, Random random)LootContextTypegetType()static Consumer<ItemStack>processStacks(Consumer<ItemStack> lootConsumer)private voidshuffle(List<ItemStack> drops, int freeSlots, Random random)voidsupplyInventory(Inventory inventory, LootContext context)voidvalidate(LootTableReporter reporter)
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official cLdhs;c:Lorg/apache/logging/log4j/Logger;intermediary field_946Lnet/minecraft/class_52;field_946:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/loot/LootTable;LOGGER:Lorg/apache/logging/log4j/Logger;
-
EMPTY
public static final LootTable EMPTY
- Mappings:
Namespace Name Mixin selector official aLdhs;a:Ldhs;intermediary field_948Lnet/minecraft/class_52;field_948:Lnet/minecraft/class_52;named EMPTYLnet/minecraft/loot/LootTable;EMPTY:Lnet/minecraft/loot/LootTable;
-
GENERIC
public static final LootContextType GENERIC
- Mappings:
Namespace Name Mixin selector official bLdhs;b:Ldjt;intermediary field_947Lnet/minecraft/class_52;field_947:Lnet/minecraft/class_176;named GENERICLnet/minecraft/loot/LootTable;GENERIC:Lnet/minecraft/loot/context/LootContextType;
-
type
private final LootContextType type
- Mappings:
Namespace Name Mixin selector official dLdhs;d:Ldjt;intermediary field_942Lnet/minecraft/class_52;field_942:Lnet/minecraft/class_176;named typeLnet/minecraft/loot/LootTable;type:Lnet/minecraft/loot/context/LootContextType;
-
pools
private final LootPool[] pools
- Mappings:
Namespace Name Mixin selector official eLdhs;e:[Ldhr;intermediary field_943Lnet/minecraft/class_52;field_943:[Lnet/minecraft/class_55;named poolsLnet/minecraft/loot/LootTable;pools:[Lnet/minecraft/loot/LootPool;
-
functions
private final LootFunction[] functions
- Mappings:
Namespace Name Mixin selector official fLdhs;f:[Ldja;intermediary field_944Lnet/minecraft/class_52;field_944:[Lnet/minecraft/class_117;named functionsLnet/minecraft/loot/LootTable;functions:[Lnet/minecraft/loot/function/LootFunction;
-
combinedFunction
private final BiFunction<ItemStack,LootContext,ItemStack> combinedFunction
- Mappings:
Namespace Name Mixin selector official gLdhs;g: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;
-
-
构造器详细资料
-
LootTable
private LootTable(LootContextType type, LootPool[] pools, LootFunction[] functions)
- Mappings:
Namespace Name Mixin selector official <init>Ldhs;<init>(Ldjt;[Ldhr;[Ldja;)Vintermediary <init>Lnet/minecraft/class_52;<init>(Lnet/minecraft/class_176;[Lnet/minecraft/class_55;[Lnet/minecraft/class_117;)Vnamed <init>Lnet/minecraft/loot/LootTable;<init>(Lnet/minecraft/loot/context/LootContextType;[Lnet/minecraft/loot/LootPool;[Lnet/minecraft/loot/function/LootFunction;)V
-
-
方法详细资料
-
processStacks
public static Consumer<ItemStack> processStacks(Consumer<ItemStack> lootConsumer)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;intermediary method_332Lnet/minecraft/class_52;method_332(Ljava/util/function/Consumer;)Ljava/util/function/Consumer;named processStacksLnet/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 aLdhs;a(Ldhp;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
-
generateLoot
public void generateLoot(LootContext context, Consumer<ItemStack> lootConsumer)
- Mappings:
Namespace Name Mixin selector official bLdhs;b(Ldhp;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
-
generateLoot
public List<ItemStack> generateLoot(LootContext context)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Ldhp;)Ljava/util/List;intermediary method_319Lnet/minecraft/class_52;method_319(Lnet/minecraft/class_47;)Ljava/util/List;named generateLootLnet/minecraft/loot/LootTable;generateLoot(Lnet/minecraft/loot/context/LootContext;)Ljava/util/List;
-
getType
public LootContextType getType()
- Mappings:
Namespace Name Mixin selector official aLdhs;a()Ldjt;intermediary method_322Lnet/minecraft/class_52;method_322()Lnet/minecraft/class_176;named getTypeLnet/minecraft/loot/LootTable;getType()Lnet/minecraft/loot/context/LootContextType;
-
validate
public void validate(LootTableReporter reporter)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Ldhx;)Vintermediary method_330Lnet/minecraft/class_52;method_330(Lnet/minecraft/class_58;)Vnamed validateLnet/minecraft/loot/LootTable;validate(Lnet/minecraft/loot/LootTableReporter;)V
-
supplyInventory
public void supplyInventory(Inventory inventory, LootContext context)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Laqz;Ldhp;)Vintermediary method_329Lnet/minecraft/class_52;method_329(Lnet/minecraft/class_1263;Lnet/minecraft/class_47;)Vnamed supplyInventoryLnet/minecraft/loot/LootTable;supplyInventory(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/loot/context/LootContext;)V
-
shuffle
private void shuffle(List<ItemStack> drops, int freeSlots, Random random)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Ljava/util/List;ILjava/util/Random;)Vintermediary method_333Lnet/minecraft/class_52;method_333(Ljava/util/List;ILjava/util/Random;)Vnamed shuffleLnet/minecraft/loot/LootTable;shuffle(Ljava/util/List;ILjava/util/Random;)V
-
getFreeSlots
private List<Integer> getFreeSlots(Inventory inventory, Random random)
- Mappings:
Namespace Name Mixin selector official aLdhs;a(Laqz;Ljava/util/Random;)Ljava/util/List;intermediary method_321Lnet/minecraft/class_52;method_321(Lnet/minecraft/class_1263;Ljava/util/Random;)Ljava/util/List;named getFreeSlotsLnet/minecraft/loot/LootTable;getFreeSlots(Lnet/minecraft/inventory/Inventory;Ljava/util/Random;)Ljava/util/List;
-
builder
public static LootTable.Builder builder()
- Mappings:
Namespace Name Mixin selector official bLdhs;b()Ldhs$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;
-
-