public void removeBlockTileEntity(int var1, int var2, int var3) {
        TileEntity var4 = this.getBlockTileEntity(var1, var2, var3);
        if (var4 != null && this.scanningTileEntities) {
            var4.invalidate();
        } else {
            if (var4 != null) {
                this.loadedTileEntityList.remove(var4);
            }

            Chunk var5 = this.getChunkFromChunkCoords(var1 >> 4, var3 >> 4);
            if (var5 != null) {
                var5.removeChunkBlockTileEntity(var1 & 15, var2, var3 & 15);
            }
        }

    }