MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / dealFireDamage

Method dealFireDamage

src/main/java/net/minecraft/entity/Entity.java:1089–1095  ·  view source on GitHub ↗

Will deal the specified amount of damage to the entity if the entity isn't immune to fire damage. Args: amountDamage

(int amount)

Source from the content-addressed store, hash-verified

1087 * amountDamage
1088 */
1089 protected void dealFireDamage(int amount)
1090 {
1091 if (!this.isImmuneToFire)
1092 {
1093 this.attackEntityFrom(DamageSource.inFire, (float)amount);
1094 }
1095 }
1096
1097 public final boolean isImmuneToFire()
1098 {

Callers 1

moveEntityMethod · 0.95

Calls 1

attackEntityFromMethod · 0.95

Tested by

no test coverage detected