Package thaumic.tinkerer.common.block.tile

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


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

        TileRPlacer dislocator = (TileRPlacer) tile;
        ItemStack currentStack = par5EntityPlayer.getCurrentEquippedItem();

        if (currentStack != null && currentStack.getItem() == ConfigItems.itemWandCasting) {
            dislocator.orientation = par6;
            par1World.playSoundEffect(par2, par3, par4, "thaumcraft:tool", 0.6F, 1F);
View Full Code Here


        icons[1] = IconHelper.forBlock(par1IconRegister, this, 1);
    }

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

    @Override
    public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) {
        TileEntity tile = par1World.getTileEntity(par2, par3, par4);
        if (tile != null && tile instanceof TileRPlacer) {
            TileRPlacer placer = (TileRPlacer) tile;
            placer.receiveRedstonePulse();
        }
    }
View Full Code Here

TOP

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

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.