Package org.spout.api.protocol.event

Examples of org.spout.api.protocol.event.EntityUpdateEvent


  @Permissible ("vanilla.command.debug")
  @CommandDescription (aliases = "resetpos", desc = "Resets players position")
  @Filter (PlayerFilter.class)
  public void resetPosition(Player player, CommandArguments args) throws CommandException {
    args.assertCompletelyParsed();
    player.getNetwork().callProtocolEvent(new EntityUpdateEvent(player, new Transform(player.getPhysics().getPosition(), player.getPhysics().getRotation(), Vector3f.ONE), EntityUpdateEvent.UpdateAction.TRANSFORM, player.getNetwork().getRepositionManager()), player);
  }
View Full Code Here


    //First look packet is to login/receive terrain, is not a valid rotation
    if (session.getDataMap().get("first_login", 0) == 0) {
      session.getDataMap().put("first_login", 1);
      Transform transform = session.getPlayer().getPhysics().getTransform();
      Player player = session.getPlayer();
      player.getNetwork().callProtocolEvent(new EntityUpdateEvent(player, transform, EntityUpdateEvent.UpdateAction.TRANSFORM, player.getNetwork().getRepositionManager()), player);
      return;
    }

    Player holder = session.getPlayer();
View Full Code Here

TOP

Related Classes of org.spout.api.protocol.event.EntityUpdateEvent

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.