Make updatemappings parameter renamer work, add importmappings parameter renamer, more refactoring

This commit is contained in:
Lucas
2019-07-07 12:15:54 +02:00
parent c92553f86f
commit e1a815eddd
98 changed files with 41069 additions and 32880 deletions

View File

@@ -66,7 +66,7 @@ public abstract class CameraMixin implements RSClient
}
}
@FieldHook("cameraPitchTarget")
@FieldHook("camAngleX")
@Inject
static void onCameraPitchTargetChanged(int idx)
{

View File

@@ -1335,7 +1335,7 @@ public abstract class RSClientMixin implements RSClient
}
@Inject
@MethodHook(value = "addChatMessage", end = true)
@MethodHook(value = "addMessage", end = true)
public static void onAddChatMessage(int type, String name, String message, String sender)
{
Logger logger = client.getLogger();
@@ -1355,13 +1355,13 @@ public abstract class RSClientMixin implements RSClient
}
@Inject
@MethodHook("methodDraw")
public void methodDraw(boolean var1)
@MethodHook("draw")
public void draw(boolean var1)
{
callbacks.clientMainLoop();
}
@MethodHook("drawWidgetGroup")
@MethodHook("drawInterface")
@Inject
public static void renderWidgetLayer(Widget[] widgets, int parentId, int minX, int minY, int maxX, int maxY, int x, int y, int var8)
{

View File

@@ -44,10 +44,10 @@ public abstract class RSTextureMixin implements RSTexture
@Inject
private float rl$v;
@Copy("Texture_animate")
@Copy("animate")
public abstract void rs$animate(int diff);
@Replace("Texture_animate")
@Replace("animate")
public void rl$animate(int diff)
{
// The client animates textures by cycling the backing pixels of the texture each fram