Package org.spout.vanilla.protocol.entity

Examples of org.spout.vanilla.protocol.entity.PlayerEntityProtocol


    player.add(WindowHolder.class);
    player.add(PlayerList.class);
    // TODO: Connection times out when using Spout Protocol because no Ping Message; need a Ping component client-side that somehow updates server
    if (player.getNetwork() instanceof VanillaPlayerNetworkComponent) {
      player.add(Ping.class);
      ((VanillaPlayerNetworkComponent) player.getNetwork()).setEntityProtocol(new PlayerEntityProtocol());
    }
    player.add(PlayerItemCollector.class);
    player.add(Sleep.class);
    player.add(Level.class);
    player.getNetwork().getSession().setUncaughtExceptionHandler(new PasteExceptionHandler(player.getNetwork().getSession()));
View Full Code Here


      return;
    }
    if (self) {
      // Sync using vanilla Player 'self' protocol
      // Note: No messages gathered because all update methods send to the Player
      PlayerEntityProtocol pep = (PlayerEntityProtocol) ep;
      Player player = (Player) e;
      if (destroy) {
        pep.doSelfDestroy(player);
      }
      if (spawn) {
        pep.doSelfSpawn(player, getRepositionManager());
      }
      if (update) {
        boolean force = shouldForce(e.getId());
        pep.doSelfUpdate(player, liveTransform, getRepositionManager(), force);
      }
    } else {
      // Sync using vanilla protocol
      List<Message> messages = new ArrayList<Message>();
      if (destroy) {
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.entity.PlayerEntityProtocol

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.