public class SUpdateScorePacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Field and Description |
---|---|
private ServerScoreboard.Action |
action |
private java.lang.String |
name |
private java.lang.String |
objective |
private int |
value |
Constructor and Description |
---|
SUpdateScorePacket() |
SUpdateScorePacket(ServerScoreboard.Action p_i47930_1_,
java.lang.String p_i47930_2_,
java.lang.String p_i47930_3_,
int p_i47930_4_) |
Modifier and Type | Method and Description |
---|---|
ServerScoreboard.Action |
getAction() |
java.lang.String |
getObjectiveName() |
java.lang.String |
getPlayerName() |
int |
getScoreValue() |
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private java.lang.String name
@Nullable private java.lang.String objective
private int value
private ServerScoreboard.Action action
public SUpdateScorePacket()
public SUpdateScorePacket(ServerScoreboard.Action p_i47930_1_, @Nullable java.lang.String p_i47930_2_, java.lang.String p_i47930_3_, int p_i47930_4_)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public java.lang.String getPlayerName()
@Nullable public java.lang.String getObjectiveName()
public int getScoreValue()
public ServerScoreboard.Action getAction()