diff options
| author | Lance5057 <Lance5057@gmail.com> | 2016-03-18 06:14:33 -0500 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2016-03-18 06:14:33 -0500 |
| commit | ba8feb526da0a1ce15a179e1e5ee44582f769768 (patch) | |
| tree | 475cddb02865c13c84a9a36800d5afaf9de58e15 /src/main/java/lance5057/tDefense/blocks | |
| parent | d01b86cd71b4a805f273bd662a38aacafa803cf4 (diff) | |
Added modifiers, beautified code
Diffstat (limited to 'src/main/java/lance5057/tDefense/blocks')
| -rw-r--r-- | src/main/java/lance5057/tDefense/blocks/JewelersBench.java | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/src/main/java/lance5057/tDefense/blocks/JewelersBench.java b/src/main/java/lance5057/tDefense/blocks/JewelersBench.java index e224675..06d6f11 100644 --- a/src/main/java/lance5057/tDefense/blocks/JewelersBench.java +++ b/src/main/java/lance5057/tDefense/blocks/JewelersBench.java @@ -13,38 +13,44 @@ import cpw.mods.fml.relauncher.SideOnly; public class JewelersBench extends Block implements ITileEntityProvider { - public JewelersBench() { + public JewelersBench() + { super(Material.iron); } //You don't want the normal render type, or it wont render properly. @Override - public int getRenderType() { - return -1; + public int getRenderType() + { + return -1; } - + //It's not an opaque cube, so you need this. @Override - public boolean isOpaqueCube() { - return false; + public boolean isOpaqueCube() + { + return false; } - + //It's not a normal block, so you need this too. - public boolean renderAsNormalBlock() { - return false; + public boolean renderAsNormalBlock() + { + return false; } - + //This is the icon to use for showing the block in your hand. - @SideOnly(Side.CLIENT) - @Override - public void registerBlockIcons(IIconRegister icon) { - this.blockIcon = icon.registerIcon("tinkersdefense:WIP"); + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister icon) + { + this.blockIcon = icon.registerIcon("tinkersdefense:WIP"); } - + @Override - public TileEntity createNewTileEntity(World w, int md) { + public TileEntity createNewTileEntity(World w, int md) + { TileEntity_JewelersBench te = new TileEntity_JewelersBench(); - return te; + return te; } } |
