public void updateBlockState(State state, World world, int x, int y, int z)
    {
        int metadata = world.getBlockMetadata(x, y, z);
        TileEntity te = world.getTileEntity(x, y, z);

        changingState = true;
        switch (state)
        {
        case IDLE:
            world.setBlock(x, y, z, GraphiteMod.blockDistilleryIdle);
            break;
        case BURNING:
            world.setBlock(x, y, z, GraphiteMod.blockDistilleryBurning);
            break;
        case DISTILLING:
            world.setBlock(x, y, z, GraphiteMod.blockDistilleryDistilling);
            break;
        }
        changingState = false;

        world.setBlockMetadataWithNotify(x, y, z, metadata, 2);

        if (te != null)
        {
            te.validate();
            world.setTileEntity(x, y, z, te);
        }
    }