public class ScriptPaint extends ClientAccessor<ClientContext>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DRAW_DISTANCE |
ctx| Constructor and Description |
|---|
ScriptPaint(ClientContext ctx)
Creates a new instance with the specified context.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatTime(long timeInMillis)
Will return a formatted string of time given a number in milliseconds
|
java.lang.String |
formatValue(long value) |
java.awt.image.BufferedImage |
getImage(java.lang.String url)
Retrieves an image from the given website {url}, caches the image for you so you don't have to
|
int |
valuePerHour(int value,
long startTime)
Will return the hourly rate of the specified {value}
|
public static final int MAX_DRAW_DISTANCE
public ScriptPaint(ClientContext ctx)
ctx - the contextpublic java.lang.String formatTime(long timeInMillis)
timeInMillis - the number of milliseconds to format usually will be {System.currentTimeMillis() - startTime}public int valuePerHour(int value,
long startTime)
value - value to get hourly rate ofstartTime - the starting time for this calculationpublic java.lang.String formatValue(long value)
public java.awt.image.BufferedImage getImage(java.lang.String url)
url - the url to grab the image from