public ProtectionRegenTask GetProtectionRegenTask(BlockLocation blockLocation) { for (BlockLocation location : protectionRegenTasks.keySet()) { if (location.isLocation(blockLocation)) { return protectionRegenTasks.get(location); } } return null; }
public boolean hasProtectionRegenTask(BlockLocation blockLocation) { for (BlockLocation location : protectionRegenTasks.keySet()) { if (location.isLocation(blockLocation)) { return true; } } return false; }