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

Method setFire

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

Sets entity to burn for x amount of seconds, cannot lower amount of existing fire.

(int seconds)

Source from the content-addressed store, hash-verified

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.

Callers 14

setOnFireFromLavaMethod · 0.95
moveEntityMethod · 0.95
onStruckByLightningMethod · 0.95
onPlayerStoppedUsingMethod · 0.80
attackEntityFromMethod · 0.80
onUpdateMethod · 0.80
onImpactMethod · 0.80
onUpdateMethod · 0.80
attackEntityAsMobMethod · 0.80
onLivingUpdateMethod · 0.80
attackEntityAsMobMethod · 0.80

Calls 1

getFireTimeForEntityMethod · 0.95

Tested by

no test coverage detected