Examples of TileCamo


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

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

  @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

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

  @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

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

    return false;
  }

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

Examples of vazkii.botania.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

Examples of vazkii.botania.common.block.tile.TileCamo

  @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();

      if(currentStack == null)
        currentStack = new ItemStack(Block.getBlockFromName("air"), 1, 0);
View Full Code Here

Examples of vazkii.botania.common.block.tile.TileCamo

  @Override
  @SideOnly(Side.CLIENT)
  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
TOP
Copyright © 2018 www.massapi.com. 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.