From df062b3f60a5aad4f7acbbc657aba7d309cbbf66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=82=A6=E8=A7=A3=E8=AF=B4?= Date: Sun, 5 May 2024 22:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=20Javadoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ziyue/tjmetro/block/BlockRailwaySignTianjin.java | 11 +++++++++-- .../tjmetro/block/BlockRailwaySignTianjinPole.java | 7 +++++++ .../tjmetro/render/RenderRailwaySignTianjin.java | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjin.java b/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjin.java index a56308a..3ea5a6f 100644 --- a/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjin.java +++ b/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjin.java @@ -22,6 +22,14 @@ import ziyue.tjmetro.block.base.BlockRailwaySignBase; import ziyue.tjmetro.block.base.IRailwaySign; +/** + * Railway Sign Tianjin. + * + * @author ZiYueCommentary + * @see BlockRailwaySignBase + * @since beta-1 + */ + public class BlockRailwaySignTianjin extends BlockRailwaySignBase { public BlockRailwaySignTianjin(int length, boolean isOdd) { @@ -98,8 +106,7 @@ public TileEntityRailwaySignTianjin(int length, boolean isOdd, BlockPos pos, Blo public static BlockEntityType getType(int length, boolean isOdd) { return switch (length) { - case 2 -> - isOdd ? null : BlockEntityTypes.RAILWAY_SIGN_TIANJIN_2_EVEN_TILE_ENTITY.get(); + case 2 -> isOdd ? null : BlockEntityTypes.RAILWAY_SIGN_TIANJIN_2_EVEN_TILE_ENTITY.get(); case 3 -> isOdd ? BlockEntityTypes.RAILWAY_SIGN_TIANJIN_3_ODD_TILE_ENTITY.get() : BlockEntityTypes.RAILWAY_SIGN_TIANJIN_3_EVEN_TILE_ENTITY.get(); case 4 -> diff --git a/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjinPole.java b/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjinPole.java index daf72b2..78a02f4 100644 --- a/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjinPole.java +++ b/common/src/main/java/ziyue/tjmetro/block/BlockRailwaySignTianjinPole.java @@ -13,6 +13,13 @@ import net.minecraft.world.phys.shapes.Shapes; import net.minecraft.world.phys.shapes.VoxelShape; +/** + * @author ZiYueCommentary + * @see BlockRailwaySignTianjin + * @see BlockRailwaySignPole + * @since beta-1 + */ + public class BlockRailwaySignTianjinPole extends BlockRailwaySignPole { public BlockRailwaySignTianjinPole() { diff --git a/common/src/main/java/ziyue/tjmetro/render/RenderRailwaySignTianjin.java b/common/src/main/java/ziyue/tjmetro/render/RenderRailwaySignTianjin.java index 40de50f..13b8702 100644 --- a/common/src/main/java/ziyue/tjmetro/render/RenderRailwaySignTianjin.java +++ b/common/src/main/java/ziyue/tjmetro/render/RenderRailwaySignTianjin.java @@ -37,7 +37,9 @@ import java.util.stream.Collectors; /** + * @author ZiYueCommentary * @see RenderRailwaySign + * @since beta-1 */ public class RenderRailwaySignTianjin extends BlockEntityRendererMapper implements IBlock, IGui, IDrawing