Package net.minecraft.util.io.netty.channel

Examples of net.minecraft.util.io.netty.channel.Channel.eventLoop()


   */
  protected void unprocessBootstrap(ChannelFuture future) {
    final Channel channel = future.channel();
   
    // For thread safety - see ChannelInjector.close()
    channel.eventLoop().submit(new Callable<Object>() {
      @Override
      public Object call() throws Exception {
        channel.pipeline().remove(handler);
        return null;
      }
View Full Code Here


    public static void unbind(Player player) {
      Object entityPlayer = Conversion.toEntityHandle.convert(player);
      Object playerConnection = EntityPlayerRef.playerConnection.get(entityPlayer);
      Object networkManager = PlayerConnectionRef.networkManager.get(playerConnection);
      final Channel channel = NetworkManagerRef.channel.get(networkManager);
      channel.eventLoop().submit(new Callable<Object>() {

        @Override
        public Object call() throws Exception {
          channel.pipeline().remove("bkcommonlib");
          return null;
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.