public class TeamS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and 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 and Description |
---|
TeamS2CPacket() |
TeamS2CPacket(Team team,
Collection<String> playerList,
int mode) |
TeamS2CPacket(Team team,
int mode) |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private String teamName
private Text displayName
private Text prefix
private Text suffix
private String nameTagVisibilityRule
private String collisionRule
private Formatting color
private final Collection<String> playerList
private int mode
private int flags
public TeamS2CPacket()
public TeamS2CPacket(Team team, int mode)
public TeamS2CPacket(Team team, Collection<String> playerList, int mode)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public String getTeamName()
@Environment(value=CLIENT) public Text getDisplayName()
@Environment(value=CLIENT) public Collection<String> getPlayerList()
@Environment(value=CLIENT) public int getMode()
@Environment(value=CLIENT) public int getFlags()
@Environment(value=CLIENT) public Formatting getPlayerPrefix()
@Environment(value=CLIENT) public String getNameTagVisibilityRule()
@Environment(value=CLIENT) public String getCollisionRule()
@Environment(value=CLIENT) public Text getPrefix()
@Environment(value=CLIENT) public Text getSuffix()