Package net.runelite.api.events
Class VarbitChanged
- java.lang.Object
-
- net.runelite.api.events.VarbitChanged
-
public class VarbitChanged extends Object
An event when a varbit or varplayer has changed. If the client preemptively changes a varp and the server agrees the next tick, VarbitChanged will only be posted when the client changes the value, not the server. This can cause unintended effects if the VarPlayer has special engine behavior assigned to it.
-
-
Constructor Summary
Constructors Constructor Description VarbitChanged()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)intgetIndex()Deprecated.longgetLongValue()intgetValue()intgetVarbitId()The id of the varbit that was changed.intgetVarpId()The id of the varp that was changed.inthashCode()voidsetLongValue(long value)voidsetValue(int value)voidsetVarbitId(int varbitId)The id of the varbit that was changed.voidsetVarpId(int varpId)The id of the varp that was changed.StringtoString()
-
-
-
Method Detail
-
getIndex
@Deprecated public int getIndex()
Deprecated.
-
getValue
public int getValue()
-
setValue
public void setValue(int value)
-
getLongValue
public long getLongValue()
-
setLongValue
public void setLongValue(long value)
-
getVarpId
public int getVarpId()
The id of the varp that was changed. For a varplayer, this is the varplayer id.
-
getVarbitId
public int getVarbitId()
The id of the varbit that was changed. For a varplayer, this is -1.
-
setVarpId
public void setVarpId(int varpId)
The id of the varp that was changed. For a varplayer, this is the varplayer id.
-
setVarbitId
public void setVarbitId(int varbitId)
The id of the varbit that was changed. For a varplayer, this is -1.
-
canEqual
protected boolean canEqual(Object other)
-
-