- Joined
- Jan 8, 2015
- Messages
- 1,426
- Thread Author
- #1
So I came up with the most idiot Saturday evening thought;
What would I have to change to make it draw the name on the item. Perhaps drawing a rectangle as well :$
Code:
GroundItem runes = GroundItems.newQuery().names("Air rune", "Law rune", "Nature rune").results().nearest();
if (runes != null) {
String s = runes.getDefinition().getName();
if (s != null) {
int x = runes.getModel().getPosition().getX();
int y = runes.getModel().getPosition().getY();
g.drawString("" + s, x, y);
}
}
What would I have to change to make it draw the name on the item. Perhaps drawing a rectangle as well :$