PillagerOutpostPools.java
net.minecraft.data.worldgen.PillagerOutpostPools
信息
- 全限定名:net.minecraft.data.worldgen.PillagerOutpostPools
- 类型:public class
- 包:net.minecraft.data.worldgen
- 源码路径:src/main/java/net/minecraft/data/worldgen/PillagerOutpostPools.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 PillagerOutpostPools {
public static final ResourceKey<StructureTemplatePool> START = Pools.createKey("pillager_outpost/base_plates");
public static void bootstrap(BootstrapContext<StructureTemplatePool> context) {
HolderGetter<StructureProcessorList> processorLists = context.lookup(Registries.PROCESSOR_LIST);
Holder<StructureProcessorList> outpostRot = processorLists.getOrThrow(ProcessorLists.OUTPOST_ROT);
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.legacy("pillager_outpost/base_plate"), 1)), StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
context,
"pillager_outpost/towers",
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(
StructurePoolElement.list(
ImmutableList.of(
StructurePoolElement.legacy("pillager_outpost/watchtower"),
StructurePoolElement.legacy("pillager_outpost/watchtower_overgrown", outpostRot)
)
),
1
)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
context,
"pillager_outpost/feature_plates",
new StructureTemplatePool(
empty,
ImmutableList.of(Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_plate"), 1)),
StructureTemplatePool.Projection.TERRAIN_MATCHING
)
);
Pools.register(
context,
"pillager_outpost/features",
new StructureTemplatePool(
empty,
ImmutableList.of(
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_cage1"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_cage2"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_cage_with_allays"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_logs"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_tent1"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_tent2"), 1),
Pair.of(StructurePoolElement.legacy("pillager_outpost/feature_targets"), 1),
Pair.of(StructurePoolElement.empty(), 6)
),
StructureTemplatePool.Projection.RIGID
)
);
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
Pools.createKey(), Pools.register()
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
StructurePoolElement.empty(), StructurePoolElement.legacy(), StructurePoolElement.list()
- 引用位置:
-
- 引用位置:
参数/字段/构造调用 - 关联成员:
StructureTemplatePool()
- 引用位置: