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