Called whenever the entity is walking inside of lava.
()
| 546 | * Called whenever the entity is walking inside of lava. |
| 547 | */ |
| 548 | protected void setOnFireFromLava() |
| 549 | { |
| 550 | if (!this.isImmuneToFire) |
| 551 | { |
| 552 | this.attackEntityFrom(DamageSource.lava, 4.0F); |
| 553 | this.setFire(15); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Sets entity to burn for x amount of seconds, cannot lower amount of existing fire. |
no test coverage detected