Class Packet209SetPlayerTeam

java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet209SetPlayerTeam

public class Packet209SetPlayerTeam extends Packet
  • Field Details

    • teamName

      public String teamName
      A unique name for the team.
    • teamDisplayName

      public String teamDisplayName
      Only if mode = 0 or 2.
    • teamPrefix

      public String teamPrefix
      Only if mode = 0 or 2. Displayed before the players' name that are part of this team.
    • teamSuffix

      public String teamSuffix
      Only if mode = 0 or 2. Displayed after the players' name that are part of this team.
    • playerNames

      public Collection playerNames
      Only if mode = 0 or 3 or 4. Players to be added/remove from the team.
    • mode

      public int mode
      If 0 then the team is created. If 1 then the team is removed. If 2 the team team information is updated. If 3 then new players are added to the team. If 4 then players are removed from the team.
    • friendlyFire

      public int friendlyFire
      Only if mode = 0 or 2.
  • Constructor Details

    • Packet209SetPlayerTeam

      public Packet209SetPlayerTeam()
    • Packet209SetPlayerTeam

      public Packet209SetPlayerTeam(ScorePlayerTeam par1ScorePlayerTeam, int par2)
    • Packet209SetPlayerTeam

      public Packet209SetPlayerTeam(ScorePlayerTeam par1ScorePlayerTeam, Collection par2Collection, int par3)
  • Method Details

    • readPacketData

      public void readPacketData(DataInput par1DataInput) throws IOException
      Abstract. Reads the raw packet data from the data stream.
      Specified by:
      readPacketData in class Packet
      Throws:
      IOException
    • writePacketData

      public void writePacketData(DataOutput par1DataOutput) throws IOException
      Abstract. Writes the raw packet data to the data stream.
      Specified by:
      writePacketData in class Packet
      Throws:
      IOException
    • processPacket

      public void processPacket(NetHandler par1NetHandler)
      Passes this Packet on to the NetHandler for processing.
      Specified by:
      processPacket in class Packet
    • getPacketSize

      public int getPacketSize()
      Abstract. Return the size of the packet (not counting the header).
      Specified by:
      getPacketSize in class Packet