package com.gmail.nossr50.runnables.skills; import com.gmail.nossr50.datatypes.BlockSnapshot; import com.gmail.nossr50.datatypes.player.McMMOPlayer; import org.bukkit.scheduler.BukkitRunnable; import java.util.ArrayList; public class DelayedHerbalismXPCheckTask extends BukkitRunnable { private final McMMOPlayer mcMMOPlayer; private final ArrayList chorusBlocks; public DelayedHerbalismXPCheckTask(McMMOPlayer mcMMOPlayer, ArrayList chorusBlocks) { this.mcMMOPlayer = mcMMOPlayer; this.chorusBlocks = chorusBlocks; } @Override public void run() { mcMMOPlayer.getHerbalismManager().awardXPForBlockSnapshots(chorusBlocks); } }