Import RuneLoader API

This commit is contained in:
Adam
2015-11-20 22:29:10 -05:00
commit 0c6ba8a2b6
38 changed files with 567 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
target

13
pom.xml Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.runelite</groupId>
<artifactId>api</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>

View File

@@ -0,0 +1,24 @@
package net.runelite.rs.api;
public interface Actor extends Renderable
{
int getInteracting();
int getInteractingObjects();
boolean inSequence();
String getOverhead();
int getLoopCycle();
int getHealth();
int getMaxHealth();
int getX();
int getY();
int getAnimation();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface Buffer
{
byte[] getPayload();
int getOffset();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface CacheableNode
{
CacheableNode getNext();
CacheableNode getPrevious();
}

View File

@@ -0,0 +1,13 @@
package net.runelite.rs.api;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public interface ClassInfo
{
Method getMethods();
Field getFields();
byte[][][] getArgs();
}

View File

@@ -0,0 +1,110 @@
package net.runelite.rs.api;
public interface Client extends GameEngine
{
int getCameraX();
int getCameraY();
int getCameraZ();
int getPlane();
int getCameraPitch();
int getCameraYaw();
int getWorld();
int getFPS();
int getMapScale();
int getMapAngle();
int[][][] getTileHeights();
byte[][][] getTileSettings();
int[] getSettings();
int[] getWidgetSettings();
int getEnergy();
int getWeight();
int getBaseX();
int getBaseY();
int[] getBoostedSkillLevels();
int[] getRealSkillLevels();
int[] getSkillExperiences();
int getGameState();
Widget[][] getWidgets();
Region getRegion();
Player getLocalPlayer();
NPC[] getCachedNPCs();
CollisionData[] getCollisionMaps();
Player[] getCachedPlayers();
Deque[][][] getGroundItemDeque();
String getUsername();
String[] getMenuActions();
String[] getMenuOptions();
Friend[] getFriends();
Ignore[] getIgnores();
World[] getWorldList();
int getRootInterface();
void setUsername(String var1);
void sendGameMessage(int var1, String var2, String var3, int var4);
void hopToWorld(String var1, int var2, int var3);
ObjectComposition getObjectDefinition(int var1);
void setScale(int var1);
int getScale();
int getCamera2();
int getCamera3();
boolean[] getValidInterfaces();
boolean isResized();
int[] getWidgetPositionsX();
int[] getWidgetPositionsY();
XHashTable getItemContainers();
XHashTable getComponentTable();
XGrandExchangeOffer[] getGrandExchangeOffers();
Widget getActiveInterface();
XClanMember[] getClanMembers();
}

View File

@@ -0,0 +1,6 @@
package net.runelite.rs.api;
public interface CollisionData
{
int[][] getFlags();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface Deque
{
Node getCurrent();
Node getHead();
}

View File

@@ -0,0 +1,12 @@
package net.runelite.rs.api;
import java.io.RandomAccessFile;
public interface FileOnDisk
{
RandomAccessFile getFile();
long getPosition();
long getLength();
}

View File

@@ -0,0 +1,10 @@
package net.runelite.rs.api;
public interface Friend
{
String getName();
String getPreviousName();
int getWorld();
}

View File

@@ -0,0 +1,5 @@
package net.runelite.rs.api;
public interface GameEngine
{
}

View File

@@ -0,0 +1,28 @@
package net.runelite.rs.api;
public interface GameObject
{
Renderable getRenderable();
int getPlane();
int getRelativeX();
int getRelativeY();
int getOffsetX();
int getOffsetY();
int getX();
int getY();
int getHeight();
int getOrientation();
int getHash();
int getFlags();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface Ignore
{
String getName();
String getPreviousName();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface Item extends Renderable
{
int getId();
int getQuantity();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface ItemComposition
{
String getName();
boolean isMembers();
}

View File

@@ -0,0 +1,20 @@
package net.runelite.rs.api;
public interface ItemLayer
{
int getX();
int getY();
int getHash();
int getFlags();
int getHeight();
Renderable getBottom();
Renderable getMiddle();
Renderable getTop();
}

View File

@@ -0,0 +1,5 @@
package net.runelite.rs.api;
public interface Model
{
}

View File

@@ -0,0 +1,6 @@
package net.runelite.rs.api;
public interface NPC extends Actor
{
NPCComposition getComposition();
}

View File

@@ -0,0 +1,20 @@
package net.runelite.rs.api;
public interface NPCComposition
{
String getName();
int[] getModels();
String[] getActions();
boolean isClickable();
boolean isMinimapVisable();
boolean isVisable();
int getId();
int getCombatLevel();
}

View File

@@ -0,0 +1,10 @@
package net.runelite.rs.api;
public interface Node
{
Node getNext();
long getHash();
Node getPrevious();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface ObjectComposition
{
String getName();
String[] getActions();
}

View File

@@ -0,0 +1,16 @@
package net.runelite.rs.api;
public interface Player extends Actor
{
PlayerComposition getComposition();
String getName();
Model getModel();
int getCombatLevel();
int getTotalLevel();
int getTeam();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface PlayerComposition
{
boolean isFemale();
int[] getEquipment();
}

View File

@@ -0,0 +1,16 @@
package net.runelite.rs.api;
public interface Projectile
{
boolean isMoving();
Sequence getAnimationSequence();
double getVelocityY();
double getVelocityX();
double getVelocityZ();
double getScalar();
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface Region
{
GameObject[] getObjects();
Tile[][][] getTiles();
}

View File

@@ -0,0 +1,6 @@
package net.runelite.rs.api;
public interface Renderable extends Node
{
int getModelHeight();
}

View File

@@ -0,0 +1,14 @@
package net.runelite.rs.api;
public interface Sequence
{
boolean getStretches();
int getMaxLoops();
int getPrecedenceAnimating();
int getReplyMode();
int[] getInterleaveLeave();
}

View File

@@ -0,0 +1,5 @@
package net.runelite.rs.api;
public interface SpritePixels
{
}

View File

@@ -0,0 +1,14 @@
package net.runelite.rs.api;
public interface Tile
{
GameObject[] getObjects();
ItemLayer getItemLayer();
int getX();
int getY();
int getPlane();
}

View File

@@ -0,0 +1,72 @@
package net.runelite.rs.api;
public interface Widget
{
Widget getParent();
int[][] getDynamicValues();
Widget[] getChildren();
int getId();
int getParentId();
int getBoundsIndex();
int getModelId();
int[] getItemIds();
int[] getItemQuantities();
int getModelType();
String[] getActions();
String getText();
String getName();
int getTextColor();
int getOpacity();
int getRelativeX();
int getRelativeY();
int getWidth();
int getHeight();
boolean isHidden();
int getIndex();
int getRotationX();
int getRotationY();
int getRotationZ();
int getContentType();
int getType();
int getScrollX();
int getScrollY();
int getTextureId();
int getBorderThickness();
int getItemId();
int getItemQuantity();
int getX();
int getY();
}

View File

@@ -0,0 +1,6 @@
package net.runelite.rs.api;
public interface WidgetNode
{
int getId();
}

View File

@@ -0,0 +1,18 @@
package net.runelite.rs.api;
public interface World
{
int getMask();
int getPlayerCount();
int getLocation();
int getIndex();
int getId();
String getActivity();
String getAddress();
}

View File

@@ -0,0 +1,10 @@
package net.runelite.rs.api;
public interface XClanMember
{
String getName();
int getWorld();
byte getRank();
}

View File

@@ -0,0 +1,16 @@
package net.runelite.rs.api;
public interface XGrandExchangeOffer
{
int getQuantitySold();
int getItemId();
int getTotalQuantity();
int getPrice();
int getSpent();
byte getProgress();
}

View File

@@ -0,0 +1,6 @@
package net.runelite.rs.api;
public interface XHashTable
{
Node get(long var1);
}

View File

@@ -0,0 +1,8 @@
package net.runelite.rs.api;
public interface XItemContainer extends Node
{
int[] getItemIds();
int[] getStackSizes();
}

View File

@@ -0,0 +1,5 @@
package net.runelite.rs.api;
public interface XSprite
{
}