Package net.minecraft.src

Examples of net.minecraft.src.NetServerHandler


   private static void updateServerHandler(EntityPlayerMP playerEntity) {
      if(hasXCommands()) {
         return;
      }

      NetServerHandler handler = playerEntity.playerNetServerHandler;

      if(playerEntity.noClip) {
         if(!(handler instanceof ONetServerHandler)) {
            playerEntity.playerNetServerHandler = new ONetServerHandler(MinecraftServer.getServer(),
                     handler.netManager, handler.playerEntity, handler);
         }
      } else {
         if(handler instanceof ONetServerHandler) {
            NetServerHandler oldInstance = ((ONetServerHandler)handler).getOldInstance();
            if(oldInstance != null) {
               handler.netManager.setNetHandler(oldInstance);
               playerEntity.playerNetServerHandler = oldInstance;
            }
         }
View Full Code Here

TOP

Related Classes of net.minecraft.src.NetServerHandler

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.