예제 #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
 public PTabComplete(TCPReader in) throws Exception {
   super(packetId);
   text = in.readString();
 }