BastionHousingUnitsPools.java

net.minecraft.data.worldgen.BastionHousingUnitsPools

信息

  • 全限定名:net.minecraft.data.worldgen.BastionHousingUnitsPools
  • 类型:public class
  • 包:net.minecraft.data.worldgen
  • 源码路径:src/main/java/net/minecraft/data/worldgen/BastionHousingUnitsPools.java
  • 起始行号:L12
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

方法

下面的方法块按源码顺序生成。

public static void bootstrap(BootstrapContext<StructureTemplatePool> context) @ L13

  • 方法名:bootstrap
  • 源码定位:L13
  • 返回类型:void
  • 修饰符:public static

参数:

  • context: BootstrapContext

说明:

TODO

代码

public class BastionHousingUnitsPools {
    public static void bootstrap(BootstrapContext<StructureTemplatePool> context) {
        HolderGetter<StructureProcessorList> processorLists = context.lookup(Registries.PROCESSOR_LIST);
        Holder<StructureProcessorList> housing = processorLists.getOrThrow(ProcessorLists.HOUSING);
        HolderGetter<StructureTemplatePool> pools = context.lookup(Registries.TEMPLATE_POOL);
        Holder<StructureTemplatePool> empty = pools.getOrThrow(Pools.EMPTY);
        Pools.register(
            context,
            "bastion/units/center_pieces",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/center_pieces/center_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/center_pieces/center_1", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/center_pieces/center_2", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/pathways",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/pathways/pathway_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/pathways/pathway_wall_0", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/walls/wall_bases",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/walls/wall_base", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/walls/connected_wall", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/stages/stage_0",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_0_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_0_1", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_0_2", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_0_3", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/stages/stage_1",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_1_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_1_1", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_1_2", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_1_3", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/stages/rot/stage_1",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/stages/rot/stage_1_0", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/stages/stage_2",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_2_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_2_1", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/stages/stage_3",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_3_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_3_1", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_3_2", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/stages/stage_3_3", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/fillers/stage_0",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/fillers/stage_0", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/edges",
            new StructureTemplatePool(
                empty, ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/edges/edge_0", housing), 1)), StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/wall_units",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/wall_units/unit_0", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/edge_wall_units",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/wall_units/edge_0_large", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/ramparts",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(
                    Pair.of(StructurePoolElement.single("bastion/units/ramparts/ramparts_0", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/ramparts/ramparts_1", housing), 1),
                    Pair.of(StructurePoolElement.single("bastion/units/ramparts/ramparts_2", housing), 1)
                ),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/large_ramparts",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/ramparts/ramparts_0", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
        Pools.register(
            context,
            "bastion/units/rampart_plates",
            new StructureTemplatePool(
                empty,
                ImmutableList.of(Pair.of(StructurePoolElement.single("bastion/units/rampart_plates/plate_0", housing), 1)),
                StructureTemplatePool.Projection.RIGID
            )
        );
    }
}

引用的其他类