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 intermediary net/minecraft/class_2803official zlnamed net/minecraft/network/packet/c2s/play/ClientSettingsC2SPacketintermediary comp_266official bnamed languageintermediary comp_267official cnamed viewDistanceintermediary comp_268official dnamed chatVisibilityintermediary comp_269official enamed chatColorsintermediary comp_270official fnamed playerModelBitMaskintermediary comp_271official gnamed mainArmintermediary comp_272official hnamed filterTextintermediary comp_273official inamed allowsListing
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool) -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
language
The field for thelanguagerecord component. -
viewDistance
private final int viewDistanceThe field for theviewDistancerecord component. -
chatVisibility
The field for thechatVisibilityrecord component. -
chatColors
private final boolean chatColorsThe field for thechatColorsrecord component. -
playerModelBitMask
private final int playerModelBitMaskThe field for theplayerModelBitMaskrecord component. -
mainArm
The field for themainArmrecord component. -
filterText
private final boolean filterTextThe field for thefilterTextrecord component. -
allowsListing
private final boolean allowsListingThe field for theallowsListingrecord component. -
MAX_LANGUAGE_LENGTH
public static final int MAX_LANGUAGE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_33360Lnet/minecraft/class_2803;field_33360:Iofficial aLzl;a:Inamed MAX_LANGUAGE_LENGTHLnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;MAX_LANGUAGE_LENGTH:I
-
-
Constructor Details
-
ClientSettingsC2SPacket
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2803;<init>(Lnet/minecraft/class_2540;)Vofficial <init>Lzl;<init>(Lsf;)Vnamed <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 intermediary <init>Lnet/minecraft/class_2803;<init>(Ljava/lang/String;ILnet/minecraft/class_1659;ZILnet/minecraft/class_1306;ZZ)Vofficial <init>Lzl;<init>(Ljava/lang/String;ILbyk;ZILbfr;ZZ)Vnamed <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 interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector intermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vofficial aLuo;a(Lsf;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector intermediary method_12133Lnet/minecraft/class_2803;method_12133(Lnet/minecraft/class_2792;)Vofficial aLzl;a(Lzb;)Vnamed applyLnet/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 thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
viewDistance
public int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-
chatVisibility
Returns the value of thechatVisibilityrecord component.- Returns:
- the value of the
chatVisibilityrecord component
-
chatColors
public boolean chatColors()Returns the value of thechatColorsrecord component.- Returns:
- the value of the
chatColorsrecord component
-
playerModelBitMask
public int playerModelBitMask()Returns the value of theplayerModelBitMaskrecord component.- Returns:
- the value of the
playerModelBitMaskrecord component
-
mainArm
Returns the value of themainArmrecord component.- Returns:
- the value of the
mainArmrecord component
-
filterText
public boolean filterText()Returns the value of thefilterTextrecord component.- Returns:
- the value of the
filterTextrecord component
-
allowsListing
public boolean allowsListing()Returns the value of theallowsListingrecord component.- Returns:
- the value of the
allowsListingrecord component
-