Пример #1
0
  /**
   * Checks if the given coordinates are within the zone and the instanceId used matched the zone's
   * instanceId
   *
   * @param x
   * @param y
   * @param z
   * @param instanceId
   * @return
   */
  public boolean isInsideZone(int x, int y, int z, int instanceId) {
    // It will check if coords are within the zone if the given instanceId or
    // the zone's _instanceId are in the multiverse or they match
    if ((_instanceId == -1) || (instanceId == -1) || (_instanceId == instanceId)) {
      return _zone.isInsideZone(x, y, z);
    }

    return false;
  }
Пример #2
0
 /**
  * Checks if the given coordinates are within the zone, ignores instanceId check
  *
  * @param loc
  * @return
  */
 public boolean isInsideZone(ILocational loc) {
   return _zone.isInsideZone(loc.getX(), loc.getY(), loc.getZ());
 }
Пример #3
0
 /**
  * Checks if the given coordinates are within the zone, ignores instanceId check
  *
  * @param x
  * @param y
  * @param z
  * @return
  */
 public boolean isInsideZone(int x, int y, int z) {
   return _zone.isInsideZone(x, y, z);
 }
Пример #4
0
 /**
  * Checks if the given coordinates are within zone's plane
  *
  * @param x
  * @param y
  * @return
  */
 public boolean isInsideZone(int x, int y) {
   return _zone.isInsideZone(x, y, _zone.getHighZ());
 }