Returns true if the entity is on fire. Used by render to add the fire effect on rendering.
()
| 2184 | * Returns true if the entity is on fire. Used by render to add the fire effect on rendering. |
| 2185 | */ |
| 2186 | public boolean isBurning() |
| 2187 | { |
| 2188 | boolean flag = this.worldObj != null && this.worldObj.isRemote; |
| 2189 | return !this.isImmuneToFire && (this.fire > 0 || flag && this.getFlag(0)); |
| 2190 | } |
| 2191 | |
| 2192 | /** |
| 2193 | * Returns true if the entity is riding another entity, used by render to rotate the legs to be in 'sit' position |
no test coverage detected