Package com.bergerkiller.bukkit.tc.events

Examples of com.bergerkiller.bukkit.tc.events.SignActionEvent


  public boolean tryBuild(Block startrails, Block startsign, BlockFace direction) {
    final TrackMap map = new TrackMap(startrails, direction, TrainCarts.maxDetectorLength);
    map.next();
    //now try to find the end rails : find the other sign
    Block endsign = null;
    SignActionEvent info;
    while (map.hasNext()) {
      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);
View Full Code Here


    if (world == null) {
      this.start();
    } else if (this.getRemaining() == 0) {
      this.clearWorld();
      this.loadChunks(world);
      SignActionEvent event = this.getSignEvent(world);
      if (event != null) {
        // Spawn a train at the sign
        SignActionSpawn.spawn(event);
      }
      this.start();
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.tc.events.SignActionEvent

Copyright © 2018 www.massapicom. 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.