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

The following examples show how to use net.runelite.api.ItemID#DRAGONSTONE_6903 . 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: EnchantmentRoom.java    From plugins with GNU General Public License v3.0 5 votes vote down vote up
private void onItemSpawned(ItemSpawned itemSpawned)
{
	final TileItem item = itemSpawned.getItem();
	final Tile tile = itemSpawned.getTile();

	if (item.getId() == ItemID.DRAGONSTONE_6903)
	{
		WorldPoint location = tile.getWorldLocation();
		log.debug("Adding dragonstone at {}", location);
		dragonstones.add(location);
	}
}
 
Example 2
Source File: EnchantmentRoom.java    From plugins with GNU General Public License v3.0 5 votes vote down vote up
private void onItemDespawned(ItemDespawned itemDespawned)
{
	final TileItem item = itemDespawned.getItem();
	final Tile tile = itemDespawned.getTile();

	if (item.getId() == ItemID.DRAGONSTONE_6903)
	{
		WorldPoint location = tile.getWorldLocation();
		log.debug("Removed dragonstone at {}", location);
		dragonstones.remove(location);
	}
}
 
Example 3
Source File: EnchantmentRoom.java    From runelite with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Subscribe
public void onItemSpawned(ItemSpawned itemSpawned)
{
	final TileItem item = itemSpawned.getItem();
	final Tile tile = itemSpawned.getTile();

	if (item.getId() == ItemID.DRAGONSTONE_6903)
	{
		WorldPoint location = tile.getWorldLocation();
		log.debug("Adding dragonstone at {}", location);
		dragonstones.add(location);
	}
}
 
Example 4
Source File: EnchantmentRoom.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();

	if (item.getId() == ItemID.DRAGONSTONE_6903)
	{
		WorldPoint location = tile.getWorldLocation();
		log.debug("Removed dragonstone at {}", location);
		dragonstones.remove(location);
	}
}