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 - zl- 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 SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theallowsListingrecord component.private final booleanThe field for thechatColorsrecord component.private final ChatVisibilityThe field for thechatVisibilityrecord component.private final booleanThe field for thefilterTextrecord component.private final StringThe field for thelanguagerecord component.private final ArmThe field for themainArmrecord component.static final intprivate final intThe field for theplayerModelBitMaskrecord component.private final intThe field for theviewDistancerecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the value of theallowsListingrecord component.voidapply(ServerPlayPacketListener serverPlayPacketListener) booleanReturns the value of thechatColorsrecord component.Returns the value of thechatVisibilityrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefilterTextrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.mainArm()Returns the value of themainArmrecord component.intReturns the value of theplayerModelBitMaskrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviewDistancerecord component.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.PacketisWritingErrorSkippable
- 
Field Details- 
languageThe field for thelanguagerecord component.
- 
viewDistanceprivate final int viewDistanceThe field for theviewDistancerecord component.
- 
chatVisibilityThe field for thechatVisibilityrecord component.
- 
chatColorsprivate final boolean chatColorsThe field for thechatColorsrecord component.
- 
playerModelBitMaskprivate final int playerModelBitMaskThe field for theplayerModelBitMaskrecord component.
- 
mainArmThe field for themainArmrecord component.
- 
filterTextprivate final boolean filterTextThe field for thefilterTextrecord component.
- 
allowsListingprivate final boolean allowsListingThe field for theallowsListingrecord component.
- 
MAX_LANGUAGE_LENGTHpublic static final int MAX_LANGUAGE_LENGTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lzl;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>- Lzl;<init>(Lsf;)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
 
- 
ClientSettingsC2SPacketpublic ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lzl;<init>(Ljava/lang/String;ILbym;ZILbft;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:
- writein interface- Packet<ServerPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Luo;a(Lsf;)V- intermediary - method_11052- Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V- named - write- Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
 
- 
apply- Specified by:
- applyin interface- Packet<ServerPlayPacketListener>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lzl;a(Lzb;)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
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
languageReturns the value of thelanguagerecord component.- Returns:
- the value of the languagerecord component
 
- 
viewDistancepublic int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the viewDistancerecord component
 
- 
chatVisibilityReturns the value of thechatVisibilityrecord component.- Returns:
- the value of the chatVisibilityrecord component
 
- 
chatColorspublic boolean chatColors()Returns the value of thechatColorsrecord component.- Returns:
- the value of the chatColorsrecord component
 
- 
playerModelBitMaskpublic int playerModelBitMask()Returns the value of theplayerModelBitMaskrecord component.- Returns:
- the value of the playerModelBitMaskrecord component
 
- 
mainArmReturns the value of themainArmrecord component.- Returns:
- the value of the mainArmrecord component
 
- 
filterTextpublic boolean filterText()Returns the value of thefilterTextrecord component.- Returns:
- the value of the filterTextrecord component
 
- 
allowsListingpublic boolean allowsListing()Returns the value of theallowsListingrecord component.- Returns:
- the value of the allowsListingrecord component
 
 
-