public boolean canLightningStrikeAt(int var1, int var2, int var3) {
        if (!this.isRaining()) {
            return false;
        } else if (!this.canBlockSeeTheSky(var1, var2, var3)) {
            return false;
        } else if (this.getTopSolidOrLiquidBlock(var1, var3) > var2) {
            return false;
        } else {
            BiomeGenBase var4 = this.getWorldChunkManager().getBiomeGenAt(var1, var3);
            return var4.getEnableSnow() ? false : var4.canSpawnLightningBolt();
        }
    }