Record Class EnterConfigurationC2SPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.login.EnterConfigurationC2SPacket
- All Implemented Interfaces:
Packet<ServerLoginPacketListener>
public record EnterConfigurationC2SPacket()
extends Record
implements Packet<ServerLoginPacketListener>
- Mappings:
Namespace Name official afw
intermediary net/minecraft/class_8593
named net/minecraft/network/packet/c2s/login/EnterConfigurationC2SPacket
-
Constructor Summary
ConstructorDescriptionCreates an instance of aEnterConfigurationC2SPacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ServerLoginPacketListener serverLoginPacketListener) final boolean
Indicates whether some other object is "equal to" this one.Returns a new network state to transition to, ornull
to indicate no state change.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.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.Packet
isWritingErrorSkippable
-
Constructor Details
-
EnterConfigurationC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lafw;<init>(Lui;)V
intermediary <init>
Lnet/minecraft/class_8593;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/c2s/login/EnterConfigurationC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
EnterConfigurationC2SPacket
public EnterConfigurationC2SPacket()Creates an instance of aEnterConfigurationC2SPacket
record class.
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lxf;a(Lui;)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:
apply
in interfacePacket<ServerLoginPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lafw;a(Lafs;)V
intermediary method_52294
Lnet/minecraft/class_8593;method_52294(Lnet/minecraft/class_2911;)V
named apply
Lnet/minecraft/network/packet/c2s/login/EnterConfigurationC2SPacket;apply(Lnet/minecraft/network/listener/ServerLoginPacketListener;)V
-
getNewNetworkState
Returns a new network state to transition to, ornull
to indicate no state change.The state transition is done on both the sender and receiver sides, but it is only in one direction (out of C2S and S2C). Another packet must be processed in the reverse direction to ensure the state in both directions are updated.
- Specified by:
getNewNetworkState
in interfacePacket<ServerLoginPacketListener>
- Returns:
- a new network state to transition to, or
null
to indicate no state change - Mappings:
Namespace Name Mixin selector official c
Lxf;c()Luh;
intermediary method_52273
Lnet/minecraft/class_2596;method_52273()Lnet/minecraft/class_2539;
named getNewNetworkState
Lnet/minecraft/network/packet/Packet;getNewNetworkState()Lnet/minecraft/network/NetworkState;
-
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.
-