コード例 #1
0
ファイル: PTeams.java プロジェクト: ZergRael/jMCgui
  public PTeams(TCPReader in) throws Exception {
    super(packetId);
    teamName = in.readString();
    mode = in.readByte();
    if (mode == 1) return;

    if (mode == 0 || mode == 2) {
      teamDisplayName = in.readString();
      teamPrefix = in.readString();
      teamSuffix = in.readString();
      friendlyFire = in.readByte();
    }

    if (mode == 0 || mode > 2) {
      playerCount = in.readShort();
      players = in.readStringArray(playerCount);
    }
  }
コード例 #2
0
ファイル: PTabComplete.java プロジェクト: ZergRael/jMCgui
 public PTabComplete(TCPReader in) throws Exception {
   super(packetId);
   text = in.readString();
 }