Record Class ScoreboardPlayerUpdateS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.ScoreboardPlayerUpdateS2CPacket
- Record Components:
playerName-objectiveName-score-display-numberFormat-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record ScoreboardPlayerUpdateS2CPacket(String playerName, String objectiveName, int score, @Nullable Text display, @Nullable class_9022 numberFormat)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official aciintermediary net/minecraft/class_2757named net/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacketofficial aintermediary comp_2122named playerNameofficial bintermediary comp_2123named objectiveNameofficial cintermediary comp_2124named scoreofficial dintermediary comp_2125named displayofficial eintermediary comp_2126named numberFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedisplayrecord component.private final @Nullable class_9022The field for thenumberFormatrecord component.private final StringThe field for theobjectiveNamerecord component.private final StringThe field for theplayerNamerecord component.private final intThe field for thescorerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionScoreboardPlayerUpdateS2CPacket(String string, String string2, int int2, @Nullable Text text, @Nullable class_9022 class_9022) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenumberFormatrecord component.Returns the value of theobjectiveNamerecord component.Returns the value of theplayerNamerecord component.intscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
getNewNetworkState, isWritingErrorSkippable
-
Field Details
-
playerName
The field for theplayerNamerecord component. -
objectiveName
The field for theobjectiveNamerecord component. -
score
private final int scoreThe field for thescorerecord component. -
display
The field for thedisplayrecord component. -
numberFormat
The field for thenumberFormatrecord component.
-
-
Constructor Details
-
ScoreboardPlayerUpdateS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Laci;<init>(Lug;)Vintermediary <init>Lnet/minecraft/class_2757;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
ScoreboardPlayerUpdateS2CPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLxd;a(Lug;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLaci;a(Lyx;)Vintermediary method_11866Lnet/minecraft/class_2757;method_11866(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/ScoreboardPlayerUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
objectiveName
Returns the value of theobjectiveNamerecord component.- Returns:
- the value of the
objectiveNamerecord component
-
score
public int score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
numberFormat
Returns the value of thenumberFormatrecord component.- Returns:
- the value of the
numberFormatrecord component
-