コード例 #1
0
ファイル: Portal.java プロジェクト: pvtjaime/Stargate-Bukkit
  private Portal(
      Blox topLeft,
      int modX,
      int modZ,
      float rotX,
      SignPost id,
      Blox button,
      String dest,
      String name,
      boolean verified,
      String network,
      Gate gate,
      String owner,
      boolean hidden,
      boolean alwaysOn,
      boolean priv,
      boolean free,
      boolean backwards,
      boolean show) {
    this.topLeft = topLeft;
    this.modX = modX;
    this.modZ = modZ;
    this.rotX = rotX;
    this.id = id;
    this.destination = dest;
    this.button = button;
    this.verified = verified;
    this.network = network;
    this.name = name;
    this.gate = gate;
    this.owner = owner;
    this.hidden = hidden;
    this.alwaysOn = alwaysOn;
    this.priv = priv;
    this.free = free;
    this.backwards = backwards;
    this.show = show;
    this.world = topLeft.getWorld();
    this.fixed = dest.length() > 0;

    if (this.isAlwaysOn() && !this.isFixed()) {
      this.alwaysOn = false;
      Stargate.debug(
          "Portal", "Can not create a non-fixed always-on gate. Setting AlwaysOn = false");
    }

    this.register();
    if (verified) {
      this.drawSign();
    }
  }