project(mixins): Server varps

This commit is contained in:
Owain van Brakel
2022-06-22 22:51:14 +02:00
parent f78b07a861
commit 795a8effc0
3 changed files with 29 additions and 0 deletions

View File

@@ -750,6 +750,29 @@ public abstract class RSClientMixin implements RSClient
return childWidgets[childId];
}
@Inject
@Override
public int getServerVarpValue(int varpId)
{
int[] varps = this.getServerVarps();
return varps[varpId];
}
@Inject
@Override
public int getServerVar(VarPlayer varPlayer)
{
int[] varps = getServerVarps();
return varps[varPlayer.getId()];
}
@Inject
@Override
public int getServerVarbitValue(int varbit)
{
return this.getVarbitValue(this.getServerVarps(), varbit);
}
@Inject
@Override
public int getVar(VarPlayer varPlayer)