Class ClientboundHelloPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundHelloPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundHelloPacket(@NonNull String serverId, @NonNull PublicKey publicKey, byte @NonNull [] challenge, boolean shouldAuthenticate) ClientboundHelloPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte @NonNull []@NonNull PublicKey@NonNull StringinthashCode()booleanGets whether the packet has handling priority.booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundHelloPacketwithChallenge(byte @NonNull [] challenge) @NonNull ClientboundHelloPacketwithPublicKey(@NonNull PublicKey publicKey) @NonNull ClientboundHelloPacketwithServerId(@NonNull String serverId) @NonNull ClientboundHelloPacketwithShouldAuthenticate(boolean shouldAuthenticate) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal
-
Constructor Details
-
ClientboundHelloPacket
-
ClientboundHelloPacket
-
-
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.
-
getServerId
-
getPublicKey
-
getChallenge
public byte @NonNull [] getChallenge() -
isShouldAuthenticate
public boolean isShouldAuthenticate() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withServerId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPublicKey
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChallenge
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShouldAuthenticate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-