forked from 2009Scape/Server
Added initial version
This commit is contained in:
commit
b1dccb3fed
14153 changed files with 1285206 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package org.runite.client;
|
||||
|
||||
final class CacheResourceRequest extends ResourceRequest {
|
||||
|
||||
Class41 cache;
|
||||
byte[] data;
|
||||
int type;
|
||||
|
||||
final byte[] getData() {
|
||||
if (this.waiting) {
|
||||
throw new RuntimeException("Attempted to get data while request was not completed yet");
|
||||
}
|
||||
return this.data;
|
||||
}
|
||||
|
||||
final int getCompletion() {
|
||||
return this.waiting ? 0 : 100;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue