Package org.spout.vanilla.component.entity.player

Examples of org.spout.vanilla.component.entity.player.Ping.refresh()


    final Player holder = session.getPlayer();
    final RepositionManager rmInverse = holder.getNetwork().getRepositionManager().getInverse();

    Ping ping = holder.get(Ping.class);
    if (ping != null) {
      ping.refresh();
    }

    final Point rawPosition = new Point(message.getPosition(), holder.getWorld());
    final Point newPosition = rmInverse.convert(rawPosition);
    final Point position = holder.getPhysics().getPosition();
View Full Code Here


public class ChunkCacheHandler extends MessageHandler<ChunkCacheMessage> {
  @Override
  public void handleServer(ServerSession session, ChunkCacheMessage message) {
    Ping ping = session.getPlayer().get(Ping.class);
    if (ping != null) {
      ping.refresh();
    }
    session.getDataMap().get(VanillaProtocol.CHUNK_NET_CACHE).handleCustomPacket(message.getChannel(), message.getData());
  }
}
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.