Package org.spout.vanilla.event.player

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


    List<Parameter<?>> parameters = new ArrayList<Parameter<?>>();
    switch (message.getAction()) {
      case EntityActionMessage.ACTION_CROUCH:

        if (human != null) {
          if (!player.getEngine().getEventManager().callEvent(new PlayerToggleSneakingEvent(player, true)).isCancelled()) {
            human.setSneaking(true);
          }
        }
        break;
      case EntityActionMessage.ACTION_UNCROUCH:
        if (human != null) {
          if (!player.getEngine().getEventManager().callEvent(new PlayerToggleSneakingEvent(player, false)).isCancelled()) {
            human.setSneaking(false);
          }
        }
        break;
      case EntityActionMessage.ACTION_LEAVE_BED:
View Full Code Here

TOP

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

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.