Class TeamS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.TeamS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class TeamS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private String
collisionRule
private Formatting
color
private Text
displayName
private int
flags
private int
mode
private String
nameTagVisibilityRule
private Collection<String>
playerList
private Text
prefix
private Text
suffix
private String
teamName
-
Constructor Summary
Constructors Constructor Description TeamS2CPacket()
TeamS2CPacket(Team team, int mode)
TeamS2CPacket(Team team, Collection<String> playerList, int mode)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
String
getCollisionRule()
Text
getDisplayName()
int
getFlags()
int
getMode()
String
getNameTagVisibilityRule()
Collection<String>
getPlayerList()
Formatting
getPlayerPrefix()
Text
getPrefix()
Text
getSuffix()
String
getTeamName()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
teamName
-
displayName
-
prefix
-
suffix
-
nameTagVisibilityRule
-
collisionRule
-
color
-
playerList
-
mode
private int mode -
flags
private int flags
-
-
Constructor Details
-
TeamS2CPacket
public TeamS2CPacket() -
TeamS2CPacket
-
TeamS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getTeamName
-
getDisplayName
-
getPlayerList
-
getMode
@Environment(CLIENT) public int getMode() -
getFlags
@Environment(CLIENT) public int getFlags() -
getPlayerPrefix
-
getNameTagVisibilityRule
-
getCollisionRule
-
getPrefix
-
getSuffix
-