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
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundGameProfilePacket> private final booleanDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionClientboundGameProfilePacket(com.mojang.authlib.GameProfile gameProfile, boolean strictErrorHandling) Creates an instance of aClientboundGameProfilePacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfileReturns the value of thegameProfilerecord component.voidhandle(ClientLoginPacketListener p_134773_) final inthashCode()Returns a hash code value for this object.booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.final StringtoString()Returns a string representation of this record class.type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfilerecord component. -
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.The field for thestrictErrorHandlingrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
ClientboundGameProfilePacket
public ClientboundGameProfilePacket(com.mojang.authlib.GameProfile gameProfile, @Deprecated(forRemoval=true) boolean strictErrorHandling) Creates an instance of aClientboundGameProfilePacketrecord class.- Parameters:
gameProfile- the value for thegameProfilerecord componentstrictErrorHandling- the value for thestrictErrorHandlingrecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientLoginPacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientLoginPacketListener>
-
isTerminal
public boolean isTerminal()- Specified by:
isTerminalin 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 thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thestrictErrorHandlingrecord component.- Returns:
- the value of the
strictErrorHandlingrecord component
-