public void removeProtectionRegenTask(ProtectionRegenTask task) { protectionRegenTasks.remove(task.getBlockLocation()); if (protectionRegenTasks.isEmpty()) protectionPlaceholders.clear(); }
public void addProtectionRegenTask(ProtectionRegenTask task) { protectionRegenTasks.put(task.getBlockLocation(), task); }