mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 16:35:14 -06:00
Renamed JS5 fields/methods
This commit is contained in:
parent
7ffd30e31c
commit
bd10ece252
21 changed files with 539 additions and 542 deletions
|
|
@ -7,26 +7,26 @@ import org.openrs2.deob.annotation.OriginalMember;
|
|||
public final class Js5NetRequest extends Js5Request {
|
||||
|
||||
@OriginalMember(owner = "client!pm", name = "U", descriptor = "B")
|
||||
public byte aByte16;
|
||||
public byte trailerLen;
|
||||
|
||||
@OriginalMember(owner = "client!pm", name = "Z", descriptor = "I")
|
||||
public int anInt4617;
|
||||
public int blockPosition;
|
||||
|
||||
@OriginalMember(owner = "client!pm", name = "bb", descriptor = "Lclient!wa;")
|
||||
public Buffer aClass3_Sub15_7;
|
||||
public Buffer buffer;
|
||||
|
||||
@OriginalMember(owner = "client!pm", name = "a", descriptor = "(Z)I")
|
||||
@Override
|
||||
public final int method3553() {
|
||||
return this.aClass3_Sub15_7 == null ? 0 : this.aClass3_Sub15_7.offset * 100 / (this.aClass3_Sub15_7.data.length - this.aByte16);
|
||||
public final int getPercentageComplete() {
|
||||
return this.buffer == null ? 0 : this.buffer.offset * 100 / (this.buffer.data.length - this.trailerLen);
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!pm", name = "b", descriptor = "(Z)[B")
|
||||
@Override
|
||||
public final byte[] getData() {
|
||||
if (this.incomplete || this.aClass3_Sub15_7.offset < this.aClass3_Sub15_7.data.length - this.aByte16) {
|
||||
if (this.incomplete || this.buffer.offset < this.buffer.data.length - this.trailerLen) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
return this.aClass3_Sub15_7.data;
|
||||
return this.buffer.data;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue