Heal
com.jsmacrosce.jsmacros.client.api.event.impl.player.EventHeal
Fires before the local player's health is updated to a higher value. It reports the observed change rather than its cause; source is always the generic damage type.
js
JsMacros.on("Heal", JavaWrapper.methodToJava(function (event) {
Chat.log(`Healed ${event.change} hp, now at ${event.health} hp`);
}))Constructors
new EventHeal
new EventHeal(DamageSource source, float health, float change)#Initializes the event with the message id from the supplied damage source and the supplied health values; it does not update health or dispatch the event.
Parameters:
source: damage source whose message id is captured;nullcauses NullPointerException.health: supplied health valuechange: supplied health-increase amount
Fields
change
Positive difference between the previous health value and the value being written, in health points.
health
Health value being written, in health points (two points per heart).