Sets entity to burn for x amount of seconds, cannot lower amount of existing fire.
(int seconds)
| 558 | * Sets entity to burn for x amount of seconds, cannot lower amount of existing fire. |
| 559 | */ |
| 560 | public void setFire(int seconds) |
| 561 | { |
| 562 | int i = seconds * 20; |
| 563 | i = EnchantmentProtection.getFireTimeForEntity(this, i); |
| 564 | |
| 565 | if (this.fire < i) |
| 566 | { |
| 567 | this.fire = i; |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | /** |
| 572 | * Removes fire from entity. |
no test coverage detected