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

The following examples show how to use net.runelite.api.ItemID#GREEN_EGG . 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: BarbarianAssaultPlugin.java    From plugins with GNU General Public License v3.0 6 votes vote down vote up
private Map<WorldPoint, Integer> getEggMap(int itemID)
{
	switch (itemID)
	{
		case ItemID.RED_EGG:
			return redEggs;

		case ItemID.GREEN_EGG:
			return greenEggs;

		case ItemID.BLUE_EGG:
			return blueEggs;

		case ItemID.YELLOW_EGG:
			return yellowEggs;
	}

	return null;
}
 
Example 2
Source File: BarbarianAssaultPlugin.java    From plugins with GNU General Public License v3.0 5 votes vote down vote up
private boolean isItemEgg(int itemId)
{
	return itemId == ItemID.RED_EGG ||
		itemId == ItemID.GREEN_EGG ||
		itemId == ItemID.BLUE_EGG ||
		itemId == ItemID.YELLOW_EGG;
}