Record Class ClientboundGameProfilePacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.login.ClientboundGameProfilePacket
- All Implemented Interfaces:
Packet<ClientLoginPacketListener>
public record ClientboundGameProfilePacket(com.mojang.authlib.GameProfile gameProfile, boolean strictErrorHandling)
extends Record
implements Packet<ClientLoginPacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfile
The field for thegameProfile
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, ClientboundGameProfilePacket> private final boolean
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionClientboundGameProfilePacket
(com.mojang.authlib.GameProfile gameProfile, boolean strictErrorHandling) Creates an instance of aClientboundGameProfilePacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfile
Returns the value of thegameProfile
record component.void
handle
(ClientLoginPacketListener p_134773_) final int
hashCode()
Returns a hash code value for this object.boolean
boolean
Deprecated, for removal: This API element is subject to removal in a future version.final String
toString()
Returns a string representation of this record class.type()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfile
record component. -
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.The field for thestrictErrorHandling
record component. -
STREAM_CODEC
-
-
Constructor Details
-
ClientboundGameProfilePacket
public ClientboundGameProfilePacket(com.mojang.authlib.GameProfile gameProfile, @Deprecated(forRemoval=true) boolean strictErrorHandling) Creates an instance of aClientboundGameProfilePacket
record class.- Parameters:
gameProfile
- the value for thegameProfile
record componentstrictErrorHandling
- the value for thestrictErrorHandling
record component
-
-
Method Details
-
type
- Specified by:
type
in interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientLoginPacketListener>
-
isTerminal
public boolean isTerminal()- Specified by:
isTerminal
in interfacePacket<ClientLoginPacketListener>
-
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 '=='. -
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfile
record component.- Returns:
- the value of the
gameProfile
record component
-
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thestrictErrorHandling
record component.- Returns:
- the value of the
strictErrorHandling
record component
-