Package com.bergerkiller.bukkit.common

Examples of com.bergerkiller.bukkit.common.Task


        }
      }
    }
    timeCalculations.put(calc.signblock, calc);
    if (updateTask == null) {
      updateTask = new Task(TrainCarts.plugin) {
        public void run() {
          if (timeCalculations.isEmpty()) {
            this.stop();
            updateTask = null;
          }
View Full Code Here


  public void updateDependency(Plugin plugin, String pluginName, boolean enabled) {
    if (pluginName.equals("SignLink")) {
      Task.stop(signtask);
      if (SignLinkEnabled = enabled) {
        log(Level.INFO, "SignLink detected, support for arrival signs added!");
        signtask = new Task(this) {
          public void run() {
            ArrivalSigns.updateAll();
          }
        };
        signtask.start(0, 10);
View Full Code Here

    // Start the path finding task
    PathProvider.init();

    // Hackish fix the chunk persistence failing
    fixGroupTickTask = new Task(this) {
      public void run() {
        MinecartGroupStore.doFixedTick();
      }
    }.start(1, 1);
View Full Code Here

      }
    }
    runningAnimations.add(new ItemAnimation(from, to, data));
    // Start the updating task if needed
    if (task == null) {
      task = new Task(TrainCarts.plugin) {
        public void run() {
          Iterator<ItemAnimation> iter = runningAnimations.iterator();
          ItemAnimation anim;
          while (iter.hasNext()) {
            anim = iter.next();
View Full Code Here

  }

  public void start() {
    this.stop();
    final SpawnSign sign = this;
    this.task = new Task(TrainCarts.plugin) {
      public void run() {
        // Start a new task which fires more often
        sign.task = new Task(TrainCarts.plugin) {
          public void run() {
            sign.updateSpawn();
          }
        }.start(0, 5);
      }
View Full Code Here

  private World world;
  private Task lockingTask;

  public TimeControl(WorldConfig owner) {
    this.config = owner;
    this.lockingTask = new Task(MyWorlds.plugin) {
      @Override
      public Task start() {
        return this.start(MyWorlds.timeLockInterval, MyWorlds.timeLockInterval);
      }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.Task

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.