mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-12-06 11:17:21 +00:00
Added Game#getSettings and Game#getSetting
This commit is contained in:
1 parent
4d8d551436
commit
52382c8a8e
2 files changed
+22
No files matched your search
@@ -48,4 +48,6 @@ public interface Client {
|
||||
public void doAction(int i);
|
||||
|
||||
public int[] getCurrentStats();
|
||||
|
||||
public int[] getSettings();
|
||||
}
|
||||
@@ -84,4 +84,24 @@ public class Game {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the settings within the client
|
||||
*
|
||||
* @param index The index of the setting you want to gather
|
||||
*
|
||||
* @return The specific setting for the given index
|
||||
*/
|
||||
public static int getSetting(int index){
|
||||
return Loader.getClient().getSettings()[index];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all the settings within the client
|
||||
*
|
||||
* @return All settings
|
||||
*/
|
||||
public static int[] getSettings(){
|
||||
return Loader.getClient().getSettings();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user