Package org.dreambot.api.script.listener
Interface VarListener
-
- All Superinterfaces:
java.util.EventListener
public interface VarListener extends java.util.EventListener
Fires an event when vars change
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onVarBitUpdate(int varbitId, int before, int after)
Fires a tick deferred varbit event Tick deferred means it will fire on the tick after the change.default void
onVarpUpdate(int varpId, int before, int after)
Fires a tick deferred varp event Tick deferred means it will fire on the tick after the change.
-
-
-
Method Detail
-
onVarBitUpdate
default void onVarBitUpdate(int varbitId, int before, int after)
Fires a tick deferred varbit event Tick deferred means it will fire on the tick after the change. EG: varbit changes during tick 53, setting change fires at the start of tick 54- Parameters:
varbitId
-before
-after
-
-
onVarpUpdate
default void onVarpUpdate(int varpId, int before, int after)
Fires a tick deferred varp event Tick deferred means it will fire on the tick after the change. EG: varp changes during tick 53, setting change fires at the start of tick 54 Varp == config == settings- Parameters:
varpId
-before
-after
-
-
-