Skip to content

Commit

Permalink
✔ Railway Sign Tianjin Double
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiYueCommentary committed May 12, 2024
1 parent 72b2161 commit 5692912
Show file tree
Hide file tree
Showing 50 changed files with 885 additions and 8 deletions.
11 changes: 11 additions & 0 deletions common/src/main/java/ziyue/tjmetro/BlockEntityTypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ public interface BlockEntityTypes
RegistryObject<BlockEntityType<BlockRailwaySignTianjin.TileEntityRailwaySignTianjin>> RAILWAY_SIGN_TIANJIN_5_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjin.TileEntityRailwaySignTianjin(5, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_5_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjin.TileEntityRailwaySignTianjin>> RAILWAY_SIGN_TIANJIN_6_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjin.TileEntityRailwaySignTianjin(6, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_6_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjin.TileEntityRailwaySignTianjin>> RAILWAY_SIGN_TIANJIN_7_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjin.TileEntityRailwaySignTianjin(7, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_7_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(2, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(3, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(4, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(5, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(6, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(7, false, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(3, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(4, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(5, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(6, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD.get()));
RegistryObject<BlockEntityType<BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble>> RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType((pos, state) -> new BlockRailwaySignTianjinDouble.TileEntityRailwaySignTianjinDouble(7, true, pos, state), BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD.get()));
RegistryObject<BlockEntityType<BlockMetalDetectionDoor.TileEntityMetalDetectionDoor>> METAL_DETECTION_DOOR_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType(BlockMetalDetectionDoor.TileEntityMetalDetectionDoor::new, BlockList.METAL_DETECTION_DOOR.get()));
RegistryObject<BlockEntityType<BlockBench.TileEntityBench>> BENCH_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType(BlockBench.TileEntityBench::new, BlockList.BENCH.get()));
RegistryObject<BlockEntityType<BlockServiceCorridorSign.TileEntityServiceCorridorSign>> SERVICE_CORRIDOR_SIGN_TILE_ENTITY = new RegistryObject<>(() -> RegistryUtilities.getBlockEntityType(BlockServiceCorridorSign.TileEntityServiceCorridorSign::new, BlockList.SERVICE_CORRIDOR_SIGN.get()));
Expand Down
12 changes: 12 additions & 0 deletions common/src/main/java/ziyue/tjmetro/BlockList.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ public interface BlockList
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_6_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjin(6, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_7_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjin(7, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_MIDDLE = new RegistryObject<>(() -> new BlockRailwaySignTianjin(0, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(3, true));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(4, true));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(5, true));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(6, true));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(7, true));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(2, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(3, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(4, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(5, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(6, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(7, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_DOUBLE_MIDDLE = new RegistryObject<>(() -> new BlockRailwaySignTianjinDouble(0, false));
RegistryObject<Block> RAILWAY_SIGN_TIANJIN_POLE = new RegistryObject<>(BlockRailwaySignTianjinPole::new);
RegistryObject<Block> METAL_DETECTION_DOOR = new RegistryObject<>(BlockMetalDetectionDoor::new);
RegistryObject<Block> SERVICE_CORRIDOR_SIGN = new RegistryObject<>(BlockServiceCorridorSign::new);
Expand Down
23 changes: 23 additions & 0 deletions common/src/main/java/ziyue/tjmetro/TianjinMetro.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,24 @@ public static void init(
registerBlockItem.accept("railway_sign_tianjin_5_even", BlockList.RAILWAY_SIGN_TIANJIN_5_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_6_even", BlockList.RAILWAY_SIGN_TIANJIN_6_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_7_even", BlockList.RAILWAY_SIGN_TIANJIN_7_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_3_odd", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_4_odd", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_5_odd", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_6_odd", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_7_odd", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_2_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_3_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_4_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_5_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_6_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_double_7_even", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN, RAILWAY_SIGNS);
registerBlockItem.accept("railway_sign_tianjin_pole", BlockList.RAILWAY_SIGN_TIANJIN_POLE, RAILWAY_SIGNS);

registerBlock.accept("railway_sign_wall_middle", BlockList.RAILWAY_SIGN_WALL_MIDDLE);
registerBlock.accept("railway_sign_wall_big_middle", BlockList.RAILWAY_SIGN_WALL_BIG_MIDDLE);
registerBlock.accept("railway_sign_wall_double_middle", BlockList.RAILWAY_SIGN_WALL_DOUBLE_MIDDLE);
registerBlock.accept("railway_sign_tianjin_middle", BlockList.RAILWAY_SIGN_TIANJIN_MIDDLE);
registerBlock.accept("railway_sign_tianjin_double_middle", BlockList.RAILWAY_SIGN_TIANJIN_DOUBLE_MIDDLE);
registerBlock.accept("psd_door_tianjin", BlockList.PSD_DOOR_TIANJIN);
registerBlock.accept("psd_glass_tianjin", BlockList.PSD_GLASS_TIANJIN);
registerBlock.accept("psd_glass_end_tianjin", BlockList.PSD_GLASS_END_TIANJIN);
Expand Down Expand Up @@ -163,6 +175,17 @@ public static void init(
registerBlockEntityType.accept("railway_sign_tianjin_5_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_5_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_6_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_6_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_7_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_7_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_3_odd", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_4_odd", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_5_odd", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_6_odd", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_7_odd", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_2_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_3_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_4_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_5_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_6_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("railway_sign_tianjin_double_7_even", BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN_TILE_ENTITY);
registerBlockEntityType.accept("metal_detection_door", BlockEntityTypes.METAL_DETECTION_DOOR_TILE_ENTITY);
registerBlockEntityType.accept("bench", BlockEntityTypes.BENCH_TILE_ENTITY);
registerBlockEntityType.accept("service_corridor_sign", BlockEntityTypes.SERVICE_CORRIDOR_SIGN_TILE_ENTITY);
Expand Down
11 changes: 11 additions & 0 deletions common/src/main/java/ziyue/tjmetro/TianjinMetroClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ public static void init() {
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_5_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjin::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_6_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjin::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_7_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjin::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_2_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_3_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_4_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_5_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_6_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_7_EVEN_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_3_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_4_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_5_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_6_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.RAILWAY_SIGN_TIANJIN_DOUBLE_7_ODD_TILE_ENTITY.get(), RenderRailwaySignTianjinDouble::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.SERVICE_CORRIDOR_SIGN_TILE_ENTITY.get(), RenderServiceCorridorSign::new);
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.PSD_DOOR_TIANJIN_TILE_ENTITY.get(), dispatcher -> new RenderPSDAPGDoor<>(dispatcher, 0));
RegistryClient.registerTileEntityRenderer(BlockEntityTypes.PSD_TOP_TIANJIN_TILE_ENTITY.get(), RenderPSDTopTianjin::new);
Expand Down
Loading

0 comments on commit 5692912

Please sign in to comment.