Esempio n. 1
0
 public static JumpPort getPort(Location loc) {
   Collection<JumpPort> jports = ports.values();
   int x = loc.getBlockX();
   int y = loc.getBlockY();
   int z = loc.getBlockZ();
   for (JumpPort port : jports) {
     if (port.hasBlock(x, y, z)) {
       return port;
     }
   }
   return null;
 }
Esempio n. 2
0
 public static boolean isInPort(Location loc) {
   Collection<JumpPort> jports = ports.values();
   int x = loc.getBlockX();
   int y = loc.getBlockY();
   int z = loc.getBlockZ();
   for (JumpPort port : jports) {
     if (port.hasBlock(x, y, z)) {
       return true;
     }
   }
   return false;
 }