Class ClientboundGameProfilePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundGameProfilePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundGameProfilePacket(@NonNull com.github.steveice10.mc.auth.data.GameProfile profile, boolean strictErrorHandling) ClientboundGameProfilePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull com.github.steveice10.mc.auth.data.GameProfileinthashCode()booleanGets whether the packet has handling priority.booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundGameProfilePacketwithProfile(@NonNull com.github.steveice10.mc.auth.data.GameProfile profile) @NonNull ClientboundGameProfilePacketwithStrictErrorHandling(boolean strictErrorHandling)
-
Constructor Details
-
ClientboundGameProfilePacket
-
ClientboundGameProfilePacket
public ClientboundGameProfilePacket(@NonNull @NonNull com.github.steveice10.mc.auth.data.GameProfile profile, boolean strictErrorHandling)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
isPriority
public boolean isPriority()Description copied from interface:PacketGets whether the packet has handling priority. If the result is true, the packet will be handled immediately after being decoded.- Specified by:
isPriorityin interfacePacket- Returns:
- Whether the packet has priority.
-
getProfile
@NonNull public @NonNull com.github.steveice10.mc.auth.data.GameProfile getProfile() -
isStrictErrorHandling
public boolean isStrictErrorHandling() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withProfile
public @NonNull ClientboundGameProfilePacket withProfile(@NonNull @NonNull com.github.steveice10.mc.auth.data.GameProfile profile) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withStrictErrorHandling
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-