}
public void tileEvent(TileEvent ev) {
Tile tile = ev.getTile();
if (ev.getType() == TileEvent.PLACEMENT) {
ResourceManager resourceManager = getClient().getResourceManager();
Set<Location> farmLocations = new HashSet<>();
for (Feature f : tile.getFeatures()) {
if (f instanceof Farm) {
farmLocations.add(f.getLocation());
}
}
if (farmLocations.isEmpty()) return;
Map<Location, Area> tAreas = resourceManager.getFeatureAreas(tile, FULL_SIZE, farmLocations);
areas.put(tile, tAreas);
refreshHints();
}
if (ev.getType() == TileEvent.REMOVE) {
areas.remove(tile);