runelite-client/src/main/java/net/runelite/client/plugins/herbiboars/HerbiboarPlugin.java
// Store relevant GameObjects (starts, objects used to trigger next trails, and some tunnels)
Store relevant GameObjects (starts, objects used to trigger next trails, and some tunnels)
Store relevant GameObjects ( starts objects used to trigger next trails and some tunnels )
private void onGameObject(Tile tile, TileObject oldObject, TileObject newObject)
	{
		trailObjects.remove(oldObject);
		tunnels.remove(oldObject);
		starts.remove(oldObject);
		if (newObject == null)
		{
			return;
		}
		if (START_OBJECT_IDS.contains(newObject.getId()))
		{
			starts.put(newObject, tile);
			return;
		}
		if (HerbiboarTrail.getAllObjectLocs().contains(newObject.getWorldLocation()))
		{
			trailObjects.put(newObject, tile);
			return;
		}
		if (END_LOCATIONS.contains(newObject.getWorldLocation()))
		{
			tunnels.put(newObject, tile);
		}
	}
private void onGameObject ( Tile tile , TileObject oldObject , TileObject newObject ) { trailObjects . remove ( oldObject ) ; tunnels . remove ( oldObject ) ; starts . remove ( oldObject ) ; if ( newObject == null ) { return ; } if ( START_OBJECT_IDS . contains ( newObject . getId ( ) ) ) { starts . put ( newObject , tile ) ; return ; } if ( HerbiboarTrail . getAllObjectLocs ( ) . contains ( newObject . getWorldLocation ( ) ) ) { trailObjects . put ( newObject , tile ) ; return ; } if ( END_LOCATIONS . contains ( newObject . getWorldLocation ( ) ) ) { tunnels . put ( newObject , tile ) ; } }
Store relevant GameObjects (starts, objects used to trigger next trails, and some tunnels)
Store relevant GameObjects ( starts objects used to trigger next trails and some tunnels )
// Starts // GameObject to trigger next trail (mushrooms, mud, seaweed, etc) // Herbiboar tunnel