AncientCityStructurePieces.java
net.minecraft.data.worldgen.AncientCityStructurePieces
信息
- 全限定名:net.minecraft.data.worldgen.AncientCityStructurePieces
- 类型:public class
- 包:net.minecraft.data.worldgen
- 源码路径:src/main/java/net/minecraft/data/worldgen/AncientCityStructurePieces.java
- 起始行号:L13
- 职责:
TODO
字段/常量
START- 类型:
ResourceKey<StructureTemplatePool> - 修饰符:
public static final - 源码定位:
L14 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public static void bootstrap(BootstrapContext<StructureTemplatePool> context) @ L16
- 方法名:bootstrap
- 源码定位:L16
- 返回类型:void
- 修饰符:public static
参数:
- context: BootstrapContext
说明:
TODO
代码
public class AncientCityStructurePieces {
public static final ResourceKey<StructureTemplatePool> START = Pools.createKey("ancient_city/city_center");
public static void bootstrap(BootstrapContext<StructureTemplatePool> context) {
HolderGetter<StructureProcessorList> processorLists = context.lookup(Registries.PROCESSOR_LIST);
Holder<StructureProcessorList> ancientCityStartDegradation = processorLists.getOrThrow(ProcessorLists.ANCIENT_CITY_START_DEGRADATION);
HolderGetter<StructureTemplatePool> pools = context.lookup(Registries.TEMPLATE_POOL);
Holder<StructureTemplatePool> empty = pools.getOrThrow(Pools.EMPTY);
context.register(
START,
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.single("ancient_city/city_center/city_center_1", ancientCityStartDegradation), 1),
Pair.of(StructurePoolElement.single("ancient_city/city_center/city_center_2", ancientCityStartDegradation), 1),
Pair.of(StructurePoolElement.single("ancient_city/city_center/city_center_3", ancientCityStartDegradation), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
AncientCityStructurePools.bootstrap(context);
}
}引用的其他类
-
- 引用位置:
方法调用 - 关联成员:
AncientCityStructurePools.bootstrap()
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
Pools.createKey()
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
StructurePoolElement.single()
- 引用位置:
-
- 引用位置:
参数/字段/构造调用 - 关联成员:
StructureTemplatePool()
- 引用位置: