diff options
Diffstat (limited to 'src/main/java/gmail/Lance5057/blocks')
| -rw-r--r-- | src/main/java/gmail/Lance5057/blocks/ArmorAnvil.java | 47 | ||||
| -rw-r--r-- | src/main/java/gmail/Lance5057/blocks/CrestMount.java | 8 | ||||
| -rw-r--r-- | src/main/java/gmail/Lance5057/blocks/JewelersBench.java | 9 |
3 files changed, 12 insertions, 52 deletions
diff --git a/src/main/java/gmail/Lance5057/blocks/ArmorAnvil.java b/src/main/java/gmail/Lance5057/blocks/ArmorAnvil.java deleted file mode 100644 index 1c9b153..0000000 --- a/src/main/java/gmail/Lance5057/blocks/ArmorAnvil.java +++ /dev/null @@ -1,47 +0,0 @@ -package gmail.Lance5057.blocks; - -import gmail.Lance5057.tileentities.TileEntity_ArmorAnvil; -import gmail.Lance5057.tileentities.TileEntity_CrestMount; -import net.minecraft.block.Block; -import net.minecraft.block.ITileEntityProvider; -import net.minecraft.block.material.Material; -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.World; - -public class ArmorAnvil extends Block implements ITileEntityProvider -{ - - public ArmorAnvil() { - super(Material.iron); - } - - //You don't want the normal render type, or it wont render properly. - @Override - public int getRenderType() { - return -1; - } - - //It's not an opaque cube, so you need this. - @Override - public boolean isOpaqueCube() { - return false; - } - - //It's not a normal block, so you need this too. - public boolean renderAsNormalBlock() { - return false; - } - - //This is the icon to use for showing the block in your hand. - public void registerIcons(IIconRegister icon) { - //TODO fix the icon - this.blockIcon = icon.registerIcon("tinkersdefense:textures/items/QueensGoldIngot.png"); - } - - @Override - public TileEntity createNewTileEntity(World w, int md) { - TileEntity_ArmorAnvil te = new TileEntity_ArmorAnvil(); - return te; - } -} diff --git a/src/main/java/gmail/Lance5057/blocks/CrestMount.java b/src/main/java/gmail/Lance5057/blocks/CrestMount.java index d78a216..ccac070 100644 --- a/src/main/java/gmail/Lance5057/blocks/CrestMount.java +++ b/src/main/java/gmail/Lance5057/blocks/CrestMount.java @@ -9,6 +9,8 @@ import gmail.Lance5057.tileentities.TileEntity_CrestMount; import java.util.Random; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; @@ -106,8 +108,10 @@ public class CrestMount extends BlockContainer { } //This is the icon to use for showing the block in your hand. - public void registerIcons(IIconRegister icon) { - this.blockIcon = icon.registerIcon("tinkersdefense:textures/items/QueensGoldIngot.png"); + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister icon) { + this.blockIcon = icon.registerIcon("tinkersdefense:Item_CrestMount"); } @Override diff --git a/src/main/java/gmail/Lance5057/blocks/JewelersBench.java b/src/main/java/gmail/Lance5057/blocks/JewelersBench.java index af9ca1c..8f7580c 100644 --- a/src/main/java/gmail/Lance5057/blocks/JewelersBench.java +++ b/src/main/java/gmail/Lance5057/blocks/JewelersBench.java @@ -1,5 +1,7 @@ package gmail.Lance5057.blocks; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; import gmail.Lance5057.tileentities.TileEntity_JewelersBench; import net.minecraft.block.Block; import net.minecraft.block.ITileEntityProvider; @@ -33,9 +35,10 @@ public class JewelersBench extends Block implements ITileEntityProvider } //This is the icon to use for showing the block in your hand. - public void registerIcons(IIconRegister icon) { - //TODO fix the icon - this.blockIcon = icon.registerIcon("tinkersdefense:textures/items/QueensGoldIngot.png"); + @SideOnly(Side.CLIENT) + @Override + public void registerBlockIcons(IIconRegister icon) { + this.blockIcon = icon.registerIcon("tinkersdefense:WIP"); } @Override |
