Skip to content

Commit

Permalink
✏ Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiYueCommentary committed May 5, 2024
1 parent eb145c6 commit df062b3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
import java.util.stream.Collectors;

/**
* @author ZiYueCommentary
* @see RenderRailwaySign
* @since beta-1
*/

public class RenderRailwaySignTianjin<T extends BlockRailwaySignTianjin.TileEntityRailwaySignTianjin> extends BlockEntityRendererMapper<T> implements IBlock, IGui, IDrawing
Expand Down

0 comments on commit df062b3

Please sign in to comment.