Extinguishing fire
EntityRef::extinguish_fire(host) exposes vanilla Entity.extinguishFire on
players, guests, mobs, armor stands and dropped items. If the entity is burning,
it first emits minecraft:entity.generic.extinguish_fire at its feet with volume
0.7 and vanilla's pitch from two ordered random float draws. It then clears
positive remaining fire ticks, preserving a negative fire-immunity countdown.
Fire-immune mob kinds and dropped stacks resistant to in-fire damage do not
count as burning, even when their timer is positive.
The sound uses the entity's sound source, including SoundSource::Players for
players and guests. The operation draws no pitch randomness for a non-burning
entity and returns false for stale or unsupported handles.
EntityRef::clear_fire(host) is the distinct vanilla Entity.clearFire operation:
it is silent, draws no random, and preserves the same negative countdown. Choose
it only when the original behavior explicitly calls clearFire, rather than
using it as a substitute for extinguishing.