Package packets.c2spackets

Source Code of packets.c2spackets.P0x0A

package packets.c2spackets;

import network.MCConnection;
import entities.Player;
import exceptions.UnrecoverableException;
import packets.PacketHandler;
import world.WorldState;

public class P0x0A extends PacketHandler {

  public P0x0A(WorldState state) {
    super(state);
  }

  @Override
  public void handle(MCConnection conn) throws UnrecoverableException {
    Player p = conn.getPlayer();

    /*boolean onGround = */
    p.setOnGround(conn.r.readBoolean());
    p.updateLocation()//TODO: updateOnGroundOnly

  }

}
TOP

Related Classes of packets.c2spackets.P0x0A

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.