Package buildcraft.core.network

Examples of buildcraft.core.network.PacketGuiReturn.sendPacket()


  @Override
  public void onGuiClosed() {
    if (pipe.getWorld().isRemote) {
      PacketGuiReturn pkt = new PacketGuiReturn(pipe.getContainer());
      pkt.sendPacket();
    }

    super.onGuiClosed();
  }
View Full Code Here


        DataOutputStream data = new DataOutputStream(bytes);
        data.writeByte(slot);
        EnumColor color = colors.getCurrent();
        data.writeByte(color == null ? 0 : color.ordinal() + 1);
        PacketGuiReturn pkt = new PacketGuiReturn(pipe.getContainer(), bytes.toByteArray());
        pkt.sendPacket();
      } catch (IOException ex) {
      }
    }

    @Override
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.