Examples of DetectorSignPair


Examples of com.bergerkiller.bukkit.tc.signactions.detector.DetectorSignPair

public class SignActionDetector extends SignAction {
  private static BlockMap<DetectorSignPair> detectors = new BlockMap<DetectorSignPair>();

  public static void removeDetector(Block at) {
    DetectorSignPair dec = detectors.get(at);
    if (dec != null) {
      detectors.remove(at.getWorld(), dec.sign1.getLocation());
      detectors.remove(at.getWorld(), dec.sign2.getLocation());
      dec.region.remove();
    }
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.signactions.detector.DetectorSignPair

      for (Block signblock : Util.getSignsFromRails(map.next())) {
        info = new SignActionEvent(signblock);
        if (match(info)) {
          endsign = signblock;
          //start and end found : add it
          final DetectorSignPair detector = new DetectorSignPair(startsign, endsign);
          detectors.put(startsign, detector);
          detectors.put(endsign, detector);
          CommonUtil.nextTick(new Runnable() {
            public void run() {
              DetectorRegion.create(map).register(detector);
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.signactions.detector.DetectorSignPair

      public void read(DataInputStream stream) throws IOException {
        for (int count = stream.readInt(); count > 0; --count) {
          //get required info
          UUID id = StreamUtil.readUUID(stream);
          //init a new detector
          DetectorSignPair det = DetectorSignPair.read(stream);
          //register
          det.region = DetectorRegion.getRegion(id);
          if (det.region == null) continue;
          det.region.register(det);
          detectors.put(det.region.getWorldName(), det.sign1.getLocation(), det);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.