/** Execute a one shot task or start executing a continuous task */ public void startExecuting() { if (targetVillager != null) { villagerObj.setPlaying(true); } playTime = 1000; }
/** Resets the task */ public void resetTask() { villagerObj.setPlaying(false); targetVillager = null; }