I figured out one solution after stopping for a minute and thinking. Having only two arguments. add(Item, ItemOptions). ItemOptions being a class which could be used as following:
new...
Type: Posts; User: Jergetson
I figured out one solution after stopping for a minute and thinking. Having only two arguments. add(Item, ItemOptions). ItemOptions being a class which could be used as following:
new...
:D It's a inventory builder for a game. Its idea is to place items in a inventory. The inventory has 9 items per row, so in this case it would be:
with this code:
new...
Hey.
I've been trying to figure out how to do this for a few hours now. I have this sort of code:
new InventoryBuilder().add("Item").empty(8).add("Item");
Now, if I would want, say 8 times...
Theres 24 players and I want to report to each of them how much time is left each second. It's a plugin for a game, so if you kill someone you get the time which the other person had, and so on. So...
Hey.
I have a HashMap like this:
HashMap<Player, Integer> players = new HashMap<Player, Integer>();
The int is for the amount of seconds the player has left. Each second one second is...