Java Code Examples for net.runelite.api.ItemID#GOLD_ORE

The following examples show how to use net.runelite.api.ItemID#GOLD_ORE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MotherlodeSession.java    From plugins with GNU General Public License v3.0 6 votes vote down vote up
void updateOreFound(int item, int count)
{
	switch (item)
	{
		case ItemID.GOLDEN_NUGGET:
			nuggetsFound += count;
			break;
		case ItemID.COAL:
			coalFound += count;
			break;
		case ItemID.GOLD_ORE:
			goldFound += count;
			break;
		case ItemID.MITHRIL_ORE:
			mithrilFound += count;
			break;
		case ItemID.ADAMANTITE_ORE:
			adamantiteFound += count;
			break;
		case ItemID.RUNITE_ORE:
			runiteFound += count;
			break;
		default:
			log.debug("Invalid ore specified. The ore count will not be updated.");
	}
}
 
Example 2
Source File: MotherlodeSession.java    From runelite with BSD 2-Clause "Simplified" License 6 votes vote down vote up
void updateOreFound(int item, int count)
{
	switch (item)
	{
		case ItemID.GOLDEN_NUGGET:
			nuggetsFound += count;
			break;
		case ItemID.COAL:
			coalFound += count;
			break;
		case ItemID.GOLD_ORE:
			goldFound += count;
			break;
		case ItemID.MITHRIL_ORE:
			mithrilFound += count;
			break;
		case ItemID.ADAMANTITE_ORE:
			adamantiteFound += count;
			break;
		case ItemID.RUNITE_ORE:
			runiteFound += count;
			break;
		default:
			log.debug("Invalid ore specified. The ore count will not be updated.");
	}
}