Package net.minecraft.src
Class Packet209SetPlayerTeam
java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet209SetPlayerTeam
-
Field Summary
FieldsModifier and TypeFieldDescriptionintOnly if mode = 0 or 2.intIf 0 then the team is created.Only if mode = 0 or 3 or 4.Only if mode = 0 or 2.A unique name for the team.Only if mode = 0 or 2.Only if mode = 0 or 2.Fields inherited from class net.minecraft.src.Packet
creationTimeMillis, field_98193_m, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize -
Constructor Summary
ConstructorsConstructorDescriptionPacket209SetPlayerTeam(ScorePlayerTeam par1ScorePlayerTeam, int par2) Packet209SetPlayerTeam(ScorePlayerTeam par1ScorePlayerTeam, Collection par2Collection, int par3) -
Method Summary
Modifier and TypeMethodDescriptionintAbstract.voidprocessPacket(NetHandler par1NetHandler) Passes this Packet on to the NetHandler for processing.voidreadPacketData(DataInput par1DataInput) Abstract.voidwritePacketData(DataOutput par1DataOutput) Abstract.Methods inherited from class net.minecraft.src.Packet
addIdClassMapping, canProcessAsync, containsSameEntityIDAs, getNewPacket, getPacketId, isRealPacket, readBytesFromStream, readItemStack, readNBTTagCompound, readPacket, readString, toString, writeByteArray, writeItemStack, writeNBTTagCompound, writePacket, writeString
-
Field Details
-
teamName
A unique name for the team. -
teamDisplayName
Only if mode = 0 or 2. -
teamPrefix
Only if mode = 0 or 2. Displayed before the players' name that are part of this team. -
teamSuffix
Only if mode = 0 or 2. Displayed after the players' name that are part of this team. -
playerNames
Only if mode = 0 or 3 or 4. Players to be added/remove from the team. -
mode
public int modeIf 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 friendlyFireOnly if mode = 0 or 2.
-
-
Constructor Details
-
Packet209SetPlayerTeam
public Packet209SetPlayerTeam() -
Packet209SetPlayerTeam
-
Packet209SetPlayerTeam
public Packet209SetPlayerTeam(ScorePlayerTeam par1ScorePlayerTeam, Collection par2Collection, int par3)
-
-
Method Details
-
readPacketData
Abstract. Reads the raw packet data from the data stream.- Specified by:
readPacketDatain classPacket- Throws:
IOException
-
writePacketData
Abstract. Writes the raw packet data to the data stream.- Specified by:
writePacketDatain classPacket- Throws:
IOException
-
processPacket
Passes this Packet on to the NetHandler for processing.- Specified by:
processPacketin classPacket
-
getPacketSize
public int getPacketSize()Abstract. Return the size of the packet (not counting the header).- Specified by:
getPacketSizein classPacket
-