Package org.spout.vanilla.event.player

Examples of org.spout.vanilla.event.player.PlayerToggleSprintingEvent


      case EntityActionMessage.ACTION_LEAVE_BED:
        player.getNetwork().callProtocolEvent(new EntityAnimationEvent(player, Animation.LEAVE_BED));
        break;
      case EntityActionMessage.ACTION_START_SPRINTING:
        if (human != null) {
          if (!player.getEngine().getEventManager().callEvent(new PlayerToggleSprintingEvent(player, true)).isCancelled()) {
            human.setSprinting(true);
          }
        }
        break;
      case EntityActionMessage.ACTION_STOP_SPRINTING:
        if (human != null) {
          if (!player.getEngine().getEventManager().callEvent(new PlayerToggleSprintingEvent(player, false)).isCancelled()) {
            human.setSprinting(false);
          }
        }
        break;
      default:
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.player.PlayerToggleSprintingEvent

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.