Jump to content

contain util


Joseph

Recommended Posts

	public boolean containsAll(boolean inv, String...items)	{ //boolean true = inventory, false = bank
		for (String item: items)	{
			if (inv ? !inventory.contains(item): !bank.contains(item))	{
				return false;
			}
		}
		return true;
	}

its a great util im always using biggrin.png

Edited by josedpay
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...