Class Events.HitsplatEvent
java.lang.Object
privbot.hooks.Events.HitsplatEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.runelite.api.ActorThe actor hit; valid only during dispatch (may be null for a forwarded event without one).final StringThe actor's name when it could be read, else null.final intThe displayed damage.final booleanWhether the actor is the local player.final booleanTrue when this facade polled it; false when it came from a forwardedHitsplatApplied.final intThe server's style code, or -1 when unknown (always -1 for forwarded events).final intThe game tick it was seen on (-1 when unknown).final intThe hitsplat type (server numbering). -
Constructor Summary
ConstructorsConstructorDescriptionHitsplatEvent(net.runelite.api.Actor actor, boolean onLocalPlayer, String actorName, int amount, int type, int style, int tick, boolean polled) -
Method Summary
-
Field Details
-
actor
public final net.runelite.api.Actor actorThe actor hit; valid only during dispatch (may be null for a forwarded event without one). -
onLocalPlayer
public final boolean onLocalPlayerWhether the actor is the local player. -
actorName
The actor's name when it could be read, else null. -
amount
public final int amountThe displayed damage. -
type
public final int typeThe hitsplat type (server numbering). -
style
public final int styleThe server's style code, or -1 when unknown (always -1 for forwarded events). -
tick
public final int tickThe game tick it was seen on (-1 when unknown). -
polled
public final boolean polledTrue when this facade polled it; false when it came from a forwardedHitsplatApplied.
-
-
Constructor Details
-
HitsplatEvent
public HitsplatEvent(net.runelite.api.Actor actor, boolean onLocalPlayer, String actorName, int amount, int type, int style, int tick, boolean polled) - Parameters:
actor- the actor hitonLocalPlayer- whether it is the local playeractorName- its name, or nullamount- displayed damagetype- hitsplat typestyle- style code, -1 unknowntick- game tickpolled- whether it was polled
-
-
Method Details
-
toString
-