Called when a lightning bolt hits the entity.
(EntityLightningBolt lightningBolt)
| 2300 | * Called when a lightning bolt hits the entity. |
| 2301 | */ |
| 2302 | public void onStruckByLightning(EntityLightningBolt lightningBolt) |
| 2303 | { |
| 2304 | this.attackEntityFrom(DamageSource.lightningBolt, 5.0F); |
| 2305 | ++this.fire; |
| 2306 | |
| 2307 | if (this.fire == 0) |
| 2308 | { |
| 2309 | this.setFire(8); |
| 2310 | } |
| 2311 | } |
| 2312 | |
| 2313 | /** |
| 2314 | * This method gets called when the entity kills another one. |
no test coverage detected