(BlockPos strikePosition)
| 3566 | } |
| 3567 | |
| 3568 | public boolean canLightningStrike(BlockPos strikePosition) |
| 3569 | { |
| 3570 | if (!this.isRaining()) |
| 3571 | { |
| 3572 | return false; |
| 3573 | } |
| 3574 | else if (!this.canSeeSky(strikePosition)) |
| 3575 | { |
| 3576 | return false; |
| 3577 | } |
| 3578 | else if (this.getPrecipitationHeight(strikePosition).getY() > strikePosition.getY()) |
| 3579 | { |
| 3580 | return false; |
| 3581 | } |
| 3582 | else |
| 3583 | { |
| 3584 | BiomeGenBase biomegenbase = this.getBiomeGenForCoords(strikePosition); |
| 3585 | return biomegenbase.getEnableSnow() ? false : (this.canSnowAt(strikePosition, false) ? false : biomegenbase.canSpawnLightningBolt()); |
| 3586 | } |
| 3587 | } |
| 3588 | |
| 3589 | public boolean isBlockinHighHumidity(BlockPos pos) |
| 3590 | { |
no test coverage detected