Package thaumic.tinkerer.common.block.tile

Examples of thaumic.tinkerer.common.block.tile.TileCamo


  public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
    TileEntity tile = world.getTileEntity(x, y, z);
    int meta = world.getBlockMetadata(x, y, z);

    if (tile instanceof TileCamo) {
      TileCamo camo = (TileCamo) tile;
      Block block = camo.camo;
      if (block != null && isValidRenderType(block.getRenderType()))
        return block.getIcon(side, camo.camoMeta);
    }
View Full Code Here


  @Override
  public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {
    TileEntity tile = par1World.getTileEntity(par2, par3, par4);

    if (tile instanceof TileCamo) {
      TileCamo camo = (TileCamo) tile;
      ItemStack currentStack = par5EntityPlayer.getCurrentEquippedItem();

      boolean doChange = true;
      Block block = null;
      checkChange:
View Full Code Here

  @SideOnly(Side.CLIENT)
  @Override
  public int colorMultiplier(IBlockAccess par1World, int par2, int par3, int par4) {
    TileEntity tile = par1World.getTileEntity(par2, par3, par4);
    if (tile instanceof TileCamo) {
      TileCamo camo = (TileCamo) tile;
      Block block = camo.camo;
      if (block != null)
        return block instanceof BlockCamo ? 0xFFFFFF : block.colorMultiplier(par1World, par2, par3, par4);

    }
View Full Code Here

    return false;
  }

  @Override
  public TileCamo createNewTileEntity(World world, int meta) {
    return new TileCamo();
  }
View Full Code Here

TOP

Related Classes of thaumic.tinkerer.common.block.tile.TileCamo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.