Package org.spout.api.component.entity

Examples of org.spout.api.component.entity.NavigationComponent


    return PRECONDITIONS;
  }

  @Override
  public boolean isComplete() {
    final NavigationComponent navi = agent.getEntity().add(NavigationComponent.class); //You will always be in our hearts Navi...
    return target == null || target.isRemoved() || !agent.getSensor(NearbyComponentsSensor.class).hasFoundEntity() || (navi != null && !navi.isNavigating());
  }
View Full Code Here


    return target == null || target.isRemoved() || !agent.getSensor(NearbyComponentsSensor.class).hasFoundEntity() || (navi != null && !navi.isNavigating());
  }

  @Override
  public void update() {
    final NavigationComponent navi = agent.getEntity().get(NavigationComponent.class);
    if (navi == null) {
      return;
    }
    //Gogo, get that fool!
    navi.setDestination(target.getPhysics().getPosition());
  }
View Full Code Here

    return PRECONDITIONS;
  }

  @Override
  public boolean isComplete() {
    final NavigationComponent navi = agent.getEntity().add(NavigationComponent.class);
    return target == null || target.isRemoved() || !agent.getSensor(NearbyMaterialHolderSensor.class).hasFoundPlayers() || navi != null && !navi.isNavigating();
  }
View Full Code Here

    return target == null || target.isRemoved() || !agent.getSensor(NearbyMaterialHolderSensor.class).hasFoundPlayers() || navi != null && !navi.isNavigating();
  }

  @Override
  public void update() {
    final NavigationComponent navi = agent.getEntity().get(NavigationComponent.class);
    if (navi == null) {
      return;
    }
    navi.setDestination(target.getPhysics().getPosition());
  }
View Full Code Here

TOP

Related Classes of org.spout.api.component.entity.NavigationComponent

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.