Class ScoreboardPlayerUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ScoreboardPlayerUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ScoreboardPlayerUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official sb
intermediary net/minecraft/class_2757
named net/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private ServerScoreboard.UpdateMode
mode
private String
objectiveName
private String
playerName
private int
score
-
Constructor Summary
Constructors Constructor Description ScoreboardPlayerUpdateS2CPacket()
ScoreboardPlayerUpdateS2CPacket(ServerScoreboard.UpdateMode mode, String objectiveName, String playerName, int score)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
String
getObjectiveName()
String
getPlayerName()
int
getScore()
ServerScoreboard.UpdateMode
getUpdateMode()
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
-
playerName
- Mappings:
Namespace Name Mixin selector official a
Lsb;a:Ljava/lang/String;
intermediary field_12610
Lnet/minecraft/class_2757;field_12610:Ljava/lang/String;
named playerName
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;playerName:Ljava/lang/String;
-
objectiveName
- Mappings:
Namespace Name Mixin selector official b
Lsb;b:Ljava/lang/String;
intermediary field_12613
Lnet/minecraft/class_2757;field_12613:Ljava/lang/String;
named objectiveName
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;objectiveName:Ljava/lang/String;
-
score
private int score- Mappings:
Namespace Name Mixin selector official c
Lsb;c:I
intermediary field_12611
Lnet/minecraft/class_2757;field_12611:I
named score
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;score:I
-
mode
- Mappings:
Namespace Name Mixin selector official d
Lsb;d:Lwq$a;
intermediary field_12612
Lnet/minecraft/class_2757;field_12612:Lnet/minecraft/class_2995$class_2996;
named mode
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;mode:Lnet/minecraft/scoreboard/ServerScoreboard$UpdateMode;
-
-
Constructor Details
-
ScoreboardPlayerUpdateS2CPacket
public ScoreboardPlayerUpdateS2CPacket() -
ScoreboardPlayerUpdateS2CPacket
public ScoreboardPlayerUpdateS2CPacket(ServerScoreboard.UpdateMode mode, @Nullable String objectiveName, String playerName, int score)- Mappings:
Namespace Name Mixin selector official <init>
Lsb;<init>(Lwq$a;Ljava/lang/String;Ljava/lang/String;I)V
intermediary <init>
Lnet/minecraft/class_2757;<init>(Lnet/minecraft/class_2995$class_2996;Ljava/lang/String;Ljava/lang/String;I)V
named <init>
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;<init>(Lnet/minecraft/scoreboard/ServerScoreboard$UpdateMode;Ljava/lang/String;Ljava/lang/String;I)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lsb;a(Lpd;)V
intermediary method_11866
Lnet/minecraft/class_2757;method_11866(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getPlayerName
- Mappings:
Namespace Name Mixin selector official b
Lsb;b()Ljava/lang/String;
intermediary method_11862
Lnet/minecraft/class_2757;method_11862()Ljava/lang/String;
named getPlayerName
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;getPlayerName()Ljava/lang/String;
-
getObjectiveName
- Mappings:
Namespace Name Mixin selector official c
Lsb;c()Ljava/lang/String;
intermediary method_11864
Lnet/minecraft/class_2757;method_11864()Ljava/lang/String;
named getObjectiveName
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;getObjectiveName()Ljava/lang/String;
-
getScore
- Mappings:
Namespace Name Mixin selector official d
Lsb;d()I
intermediary method_11865
Lnet/minecraft/class_2757;method_11865()I
named getScore
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;getScore()I
-
getUpdateMode
- Mappings:
Namespace Name Mixin selector official e
Lsb;e()Lwq$a;
intermediary method_11863
Lnet/minecraft/class_2757;method_11863()Lnet/minecraft/class_2995$class_2996;
named getUpdateMode
Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;getUpdateMode()Lnet/minecraft/scoreboard/ServerScoreboard$UpdateMode;
-