Class ClientboundHelloPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundHelloPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundHelloPacket(io.netty.buffer.ByteBuf in) ClientboundHelloPacket(String serverId, PublicKey publicKey, byte[] challenge, boolean shouldAuthenticate) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbyte[]inthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out) toString()withChallenge(byte[] challenge) withPublicKey(PublicKey publicKey) withServerId(String serverId) withShouldAuthenticate(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, shouldRunOnGameThread
-
Constructor Details
-
ClientboundHelloPacket
public ClientboundHelloPacket(io.netty.buffer.ByteBuf in) -
ClientboundHelloPacket
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getServerId
-
getPublicKey
-
getChallenge
public byte[] 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).
-