Package org.spout.vanilla.component.entity.living

Examples of org.spout.vanilla.component.entity.living.Human.canFly()


    this.player = player;
    flyingSpeed = human.getFlyingSpeed();
    walkingSpeed = human.getWalkingSpeed();
    godMode = human.getGodMode();
    isFlying = human.isFlying();
    canFly = human.canFly();
    creativeMode = human.getGameMode() == GameMode.CREATIVE;
  }

  public float getFlyingSpeed() {
    return flyingSpeed;
View Full Code Here


          human.getData().remove("time_in_air");
        }
        float time = human.getData().get("time_in_air", holder.getWorld().getAge());
        //hovering or still rising
        if (time + 2000 < holder.getWorld().getAge() && newPosition.getY() - position.getY() >= 0) {
          if (!human.canFly()) {
            holder.sendMessage("Hover cheating?");
          }
        }
      } else if (!wasOnGround && onGround) {
        human.getData().remove("position_on_ground");
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.