public class ScoreboardObjectiveUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private Text |
displayName |
private int |
mode |
private String |
name |
private ScoreboardCriterion.RenderType |
type |
Constructor and Description |
---|
ScoreboardObjectiveUpdateS2CPacket() |
ScoreboardObjectiveUpdateS2CPacket(ScoreboardObjective objective,
int mode) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Text |
getDisplayName() |
int |
getMode() |
String |
getName() |
ScoreboardCriterion.RenderType |
getType() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private String name
private Text displayName
private ScoreboardCriterion.RenderType type
private int mode
public ScoreboardObjectiveUpdateS2CPacket()
public ScoreboardObjectiveUpdateS2CPacket(ScoreboardObjective objective, 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 getName()
@Environment(value=CLIENT) public Text getDisplayName()
@Environment(value=CLIENT) public int getMode()
@Environment(value=CLIENT) public ScoreboardCriterion.RenderType getType()