mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 16:49:09 +00:00
Re-arranged code
This commit is contained in:
@@ -3,79 +3,85 @@ package org.rev317.min.api.methods;
|
||||
import org.rev317.min.Loader;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Everel
|
||||
*
|
||||
*/
|
||||
public class Game {
|
||||
|
||||
/**
|
||||
* Gets BaseX
|
||||
* @return baseX
|
||||
*/
|
||||
public static int getBaseX() {
|
||||
return Loader.getClient().getBaseX();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets BaseY
|
||||
* @return baseY
|
||||
*/
|
||||
public static int getBaseY() {
|
||||
return Loader.getClient().getBaseY();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets open interface id
|
||||
* @return interface id
|
||||
*/
|
||||
public static int getOpenInterfaceId() {
|
||||
return Loader.getClient().getOpenInterfaceId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get open back dialog id
|
||||
* @return back dialog id
|
||||
*/
|
||||
public static int getOpenBackDialogId() {
|
||||
return Loader.getClient().getBackDialogId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets loop cycle
|
||||
* @return loop cycle
|
||||
*/
|
||||
public static int getLoopCycle() {
|
||||
return Loader.getClient().getLoopCycle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get collision flags
|
||||
* @return collision flags
|
||||
*/
|
||||
public static int[][] getCollisionFlags() {
|
||||
return Loader.getClient().getCollisionMap()[Game.getPlane()].getFlags();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets current plane
|
||||
* @return current plane
|
||||
*/
|
||||
public static int getPlane() {
|
||||
return Loader.getClient().getPlane();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether this client has action 4 hooked
|
||||
* @return <code>true</code> if action 4 is hooked
|
||||
*/
|
||||
public static boolean hasAction4() {
|
||||
try {
|
||||
Loader.getClient().getMenuAction4();
|
||||
return true;
|
||||
} catch(AbstractMethodError e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets BaseX
|
||||
*
|
||||
* @return baseX
|
||||
*/
|
||||
public static int getBaseX() {
|
||||
return Loader.getClient().getBaseX();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets BaseY
|
||||
*
|
||||
* @return baseY
|
||||
*/
|
||||
public static int getBaseY() {
|
||||
return Loader.getClient().getBaseY();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets open interface id
|
||||
*
|
||||
* @return interface id
|
||||
*/
|
||||
public static int getOpenInterfaceId() {
|
||||
return Loader.getClient().getOpenInterfaceId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get open back dialog id
|
||||
*
|
||||
* @return back dialog id
|
||||
*/
|
||||
public static int getOpenBackDialogId() {
|
||||
return Loader.getClient().getBackDialogId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets loop cycle
|
||||
*
|
||||
* @return loop cycle
|
||||
*/
|
||||
public static int getLoopCycle() {
|
||||
return Loader.getClient().getLoopCycle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get collision flags
|
||||
*
|
||||
* @return collision flags
|
||||
*/
|
||||
public static int[][] getCollisionFlags() {
|
||||
return Loader.getClient().getCollisionMap()[Game.getPlane()].getFlags();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets current plane
|
||||
*
|
||||
* @return current plane
|
||||
*/
|
||||
public static int getPlane() {
|
||||
return Loader.getClient().getPlane();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether this client has action 4 hooked
|
||||
*
|
||||
* @return <code>true</code> if action 4 is hooked
|
||||
*/
|
||||
public static boolean hasAction4() {
|
||||
try {
|
||||
Loader.getClient().getMenuAction4();
|
||||
return true;
|
||||
} catch (AbstractMethodError e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user