public void setBlockMetadataWithNotify(int par1, int par2, int par3, int par4)
    {
        if (this.setBlockMetadata(par1, par2, par3, par4))
        {
            int var5 = this.getBlockId(par1, par2, par3);

            if (Block.requiresSelfNotify[var5 & 4095])
            {
                this.notifyBlockChange(par1, par2, par3, var5);
            }
            else
            {
                this.notifyBlocksOfNeighborChange(par1, par2, par3, var5);
            }
        }
    }