Record Class ScoreboardScoreResetS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.ScoreboardScoreResetS2CPacket
- Record Components:
scoreHolderName-objectiveName-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record ScoreboardScoreResetS2CPacket(String scoreHolderName, @Nullable String objectiveName)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name named net/minecraft/network/packet/s2c/play/ScoreboardScoreResetS2CPacketintermediary net/minecraft/class_9006official afjnamed scoreHolderNameintermediary comp_2120official bnamed objectiveNameintermediary comp_2121official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<PacketByteBuf, ScoreboardScoreResetS2CPacket> The field for theobjectiveNamerecord component.private final StringThe field for thescoreHolderNamerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionScoreboardScoreResetS2CPacket(String string, @Nullable String string2) private -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) 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 theobjectiveNamerecord component.Returns the value of thescoreHolderNamerecord component.final StringtoString()Returns a string representation of this record class.private 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
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
scoreHolderName
The field for thescoreHolderNamerecord component. -
objectiveName
The field for theobjectiveNamerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/packet/s2c/play/ScoreboardScoreResetS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_47961Lnet/minecraft/class_9006;field_47961:Lnet/minecraft/class_9139;official aLafj;a:Lzt;
-
-
Constructor Details
-
ScoreboardScoreResetS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/s2c/play/ScoreboardScoreResetS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)Vintermediary <init>Lnet/minecraft/class_9006;<init>(Lnet/minecraft/class_2540;)Vofficial <init>Lafj;<init>(Lws;)V
-
ScoreboardScoreResetS2CPacket
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/network/packet/s2c/play/ScoreboardScoreResetS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_55908Lnet/minecraft/class_9006;method_55908(Lnet/minecraft/class_2540;)Vofficial aLafj;a(Lws;)V
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;official aLaac;a()Laae;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/network/packet/s2c/play/ScoreboardScoreResetS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)Vintermediary method_55332Lnet/minecraft/class_9006;method_55332(Lnet/minecraft/class_2602;)Vofficial aLafj;a(Lacr;)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. All components in this record class are compared withObjects::equals(Object,Object). -
scoreHolderName
Returns the value of thescoreHolderNamerecord component.- Returns:
- the value of the
scoreHolderNamerecord component
-
objectiveName
Returns the value of theobjectiveNamerecord component.- Returns:
- the value of the
objectiveNamerecord component
-