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

The following examples show how to use net.runelite.api.ItemID#STICK . 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: AgilityPlugin.java    From plugins with GNU General Public License v3.0 6 votes vote down vote up
@Subscribe
private void onItemSpawned(ItemSpawned itemSpawned)
{
	if (obstacles.isEmpty())
	{
		return;
	}

	final TileItem item = itemSpawned.getItem();
	final Tile tile = itemSpawned.getTile();

	if (item.getId() == ItemID.MARK_OF_GRACE)
	{
		marksOfGrace.add(tile);
	}

	if (item.getId() == ItemID.STICK)
	{
		stickTile = tile;
	}
}
 
Example 2
Source File: AgilityPlugin.java    From runelite with BSD 2-Clause "Simplified" License 6 votes vote down vote up
@Subscribe
public void onItemSpawned(ItemSpawned itemSpawned)
{
	if (obstacles.isEmpty())
	{
		return;
	}

	final TileItem item = itemSpawned.getItem();
	final Tile tile = itemSpawned.getTile();

	if (item.getId() == ItemID.MARK_OF_GRACE)
	{
		marksOfGrace.add(tile);
	}

	if (item.getId() == ItemID.STICK)
	{
		stickTile = tile;
	}
}
 
Example 3
Source File: AgilityPlugin.java    From plugins with GNU General Public License v3.0 5 votes vote down vote up
@Subscribe
private void onItemDespawned(ItemDespawned itemDespawned)
{
	final TileItem item = itemDespawned.getItem();
	final Tile tile = itemDespawned.getTile();

	marksOfGrace.remove(tile);

	if (item.getId() == ItemID.STICK && stickTile == tile)
	{
		stickTile = null;
	}
}
 
Example 4
Source File: AgilityPlugin.java    From runelite with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Subscribe
public void onItemDespawned(ItemDespawned itemDespawned)
{
	final TileItem item = itemDespawned.getItem();
	final Tile tile = itemDespawned.getTile();

	marksOfGrace.remove(tile);

	if (item.getId() == ItemID.STICK && stickTile == tile)
	{
		stickTile = null;
	}
}