Record Class ClientSettingsC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.ClientSettingsC2SPacket
- Record Components:
language
-viewDistance
-chatVisibility
-chatColors
-playerModelBitMask
-mainArm
-filterText
-allowsListing
-
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public record ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int playerModelBitMask, Arm mainArm, boolean filterText, boolean allowsListing)
extends Record
implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official ux
intermediary net/minecraft/class_2803
named net/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket
official b
intermediary comp_266
named language
official c
intermediary comp_267
named viewDistance
official d
intermediary comp_268
named chatVisibility
official e
intermediary comp_269
named chatColors
official f
intermediary comp_270
named playerModelBitMask
official g
intermediary comp_271
named mainArm
official h
intermediary comp_272
named filterText
official i
intermediary comp_273
named allowsListing
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theallowsListing
record component.private final boolean
The field for thechatColors
record component.private final ChatVisibility
The field for thechatVisibility
record component.private final boolean
The field for thefilterText
record component.private final String
The field for thelanguage
record component.private final Arm
The field for themainArm
record component.static final int
private final int
The field for theplayerModelBitMask
record component.private final int
The field for theviewDistance
record component. -
Constructor Summary
ConstructorDescriptionClientSettingsC2SPacket
(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theallowsListing
record component.void
apply
(ServerPlayPacketListener serverPlayPacketListener) boolean
Returns the value of thechatColors
record component.Returns the value of thechatVisibility
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefilterText
record component.final int
hashCode()
Returns a hash code value for this object.language()
Returns the value of thelanguage
record component.mainArm()
Returns the value of themainArm
record component.int
Returns the value of theplayerModelBitMask
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theviewDistance
record component.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
language
The field for thelanguage
record component. -
viewDistance
private final int viewDistanceThe field for theviewDistance
record component. -
chatVisibility
The field for thechatVisibility
record component. -
chatColors
private final boolean chatColorsThe field for thechatColors
record component. -
playerModelBitMask
private final int playerModelBitMaskThe field for theplayerModelBitMask
record component. -
mainArm
The field for themainArm
record component. -
filterText
private final boolean filterTextThe field for thefilterText
record component. -
allowsListing
private final boolean allowsListingThe field for theallowsListing
record component. -
MAX_LANGUAGE_LENGTH
public static final int MAX_LANGUAGE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lux;a:I
intermediary field_33360
Lnet/minecraft/class_2803;field_33360:I
named MAX_LANGUAGE_LENGTH
Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;MAX_LANGUAGE_LENGTH:I
-
-
Constructor Details
-
ClientSettingsC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lux;<init>(Lph;)V
intermediary <init>
Lnet/minecraft/class_2803;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
ClientSettingsC2SPacket
public ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool) - Mappings:
Namespace Name Mixin selector official <init>
Lux;<init>(Ljava/lang/String;ILbni;ZILawv;ZZ)V
intermediary <init>
Lnet/minecraft/class_2803;<init>(Ljava/lang/String;ILnet/minecraft/class_1659;ZILnet/minecraft/class_1306;ZZ)V
named <init>
Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;<init>(Ljava/lang/String;ILnet/minecraft/client/option/ChatVisibility;ZILnet/minecraft/util/Arm;ZZ)V
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lql;a(Lph;)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<ServerPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lux;a(Lur;)V
intermediary method_12133
Lnet/minecraft/class_2803;method_12133(Lnet/minecraft/class_2792;)V
named apply
Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)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 '=='. -
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
viewDistance
public int viewDistance()Returns the value of theviewDistance
record component.- Returns:
- the value of the
viewDistance
record component
-
chatVisibility
Returns the value of thechatVisibility
record component.- Returns:
- the value of the
chatVisibility
record component
-
chatColors
public boolean chatColors()Returns the value of thechatColors
record component.- Returns:
- the value of the
chatColors
record component
-
playerModelBitMask
public int playerModelBitMask()Returns the value of theplayerModelBitMask
record component.- Returns:
- the value of the
playerModelBitMask
record component
-
mainArm
Returns the value of themainArm
record component.- Returns:
- the value of the
mainArm
record component
-
filterText
public boolean filterText()Returns the value of thefilterText
record component.- Returns:
- the value of the
filterText
record component
-
allowsListing
public boolean allowsListing()Returns the value of theallowsListing
record component.- Returns:
- the value of the
allowsListing
record component
-