Package mekanism.client.voice

Examples of mekanism.client.voice.VoiceClient


    {
      if(event.isLocal)
      {
        //If the client is connecting to its own corresponding integrated server.
        try {
          MekanismClient.voiceClient = new VoiceClient("127.0.0.1");
          //Will probably not work when multiple integrateds are running on one computer
        } catch(Throwable e) {
          Mekanism.logger.error("Unable to establish VoiceClient on local connection.");
          e.printStackTrace();
        }
      }
      else {
        //If the client is connecting to a foreign integrated or dedicated server.
        try {
          MekanismClient.voiceClient = new VoiceClient(((InetSocketAddress)event.manager.getSocketAddress()).getHostString());
        } catch(Throwable e) {
          Mekanism.logger.error("Unable to establish VoiceClient on remote connection.");
          e.printStackTrace();
        }
      }
View Full Code Here

TOP

Related Classes of mekanism.client.voice.VoiceClient

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.