mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
Added Game#getSettings and Game#getSetting
This commit is contained in:
@@ -48,4 +48,6 @@ public interface Client {
|
|||||||
public void doAction(int i);
|
public void doAction(int i);
|
||||||
|
|
||||||
public int[] getCurrentStats();
|
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