VanillaLootTableProvider.java
net.minecraft.data.loot.packs.VanillaLootTableProvider
信息
- 全限定名:net.minecraft.data.loot.packs.VanillaLootTableProvider
- 类型:public class
- 包:net.minecraft.data.loot.packs
- 源码路径:src/main/java/net/minecraft/data/loot/packs/VanillaLootTableProvider.java
- 起始行号:L11
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static LootTableProvider create(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) @ L12
- 方法名:create
- 源码定位:L12
- 返回类型:LootTableProvider
- 修饰符:public static
参数:
- output: PackOutput
- registries: CompletableFuture<HolderLookup.Provider>
说明:
TODO
代码
public class VanillaLootTableProvider {
public static LootTableProvider create(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) {
return new LootTableProvider(
output,
BuiltInLootTables.all(),
List.of(
new LootTableProvider.SubProviderEntry(VanillaFishingLoot::new, LootContextParamSets.FISHING),
new LootTableProvider.SubProviderEntry(VanillaChestLoot::new, LootContextParamSets.CHEST),
new LootTableProvider.SubProviderEntry(VanillaEntityLoot::new, LootContextParamSets.ENTITY),
new LootTableProvider.SubProviderEntry(VanillaEquipmentLoot::new, LootContextParamSets.EQUIPMENT),
new LootTableProvider.SubProviderEntry(VanillaBlockLoot::new, LootContextParamSets.BLOCK),
new LootTableProvider.SubProviderEntry(VanillaPiglinBarterLoot::new, LootContextParamSets.PIGLIN_BARTER),
new LootTableProvider.SubProviderEntry(VanillaGiftLoot::new, LootContextParamSets.GIFT),
new LootTableProvider.SubProviderEntry(VanillaArchaeologyLoot::new, LootContextParamSets.ARCHAEOLOGY),
new LootTableProvider.SubProviderEntry(VanillaShearingLoot::new, LootContextParamSets.SHEARING),
new LootTableProvider.SubProviderEntry(VanillaEntityInteractLoot::new, LootContextParamSets.ENTITY_INTERACT),
new LootTableProvider.SubProviderEntry(VanillaBlockInteractLoot::new, LootContextParamSets.BLOCK_INTERACT),
new LootTableProvider.SubProviderEntry(VanillaChargedCreeperExplosionLoot::new, LootContextParamSets.ENTITY)
),
registries
);
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用/构造调用/返回值 - 关联成员:
LootTableProvider(), LootTableProvider.SubProviderEntry(), SubProviderEntry()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
BuiltInLootTables.all()
- 引用位置: