Examples of moveFlying()


Examples of net.minecraft.entity.player.EntityPlayer.moveFlying()

    super.onWornTick(stack, entity);

    if(entity instanceof EntityPlayer) {
      EntityPlayer player = (EntityPlayer) entity;
      if((player.onGround || player.capabilities.isFlying) && player.moveForward > 0F && !player.isInsideOfMaterial(Material.water))
        player.moveFlying(0F, 1F, player.capabilities.isFlying ? speed : speed * 2);

      if(player.isSneaking())
        player.stepHeight = 0.50001F; // Not 0.5F because that is the default
      else if(player.stepHeight == 0.50001F)
        player.stepHeight = 1F;
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.