public class Handshake extends DefinedPacket
| Constructor and Description |
|---|
Handshake() |
Handshake(int protocolVersion,
String host,
int port,
int requestedProtocol) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getHost() |
int |
getPort() |
int |
getProtocolVersion() |
int |
getRequestedProtocol() |
void |
handle(AbstractPacketHandler handler) |
int |
hashCode() |
void |
read(io.netty.buffer.ByteBuf buf) |
void |
setHost(String host) |
void |
setPort(int port) |
void |
setProtocolVersion(int protocolVersion) |
void |
setRequestedProtocol(int requestedProtocol) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf) |
read, readArray, readArray, readString, readString, readStringArray, readUUID, readVarInt, readVarInt, readVarIntArray, readVarShort, toArray, write, writeArray, writeString, writeString, writeStringArray, writeUUID, writeVarInt, writeVarShortpublic Handshake()
public Handshake(int protocolVersion,
String host,
int port,
int requestedProtocol)
public void read(io.netty.buffer.ByteBuf buf)
read in class DefinedPacketpublic void write(io.netty.buffer.ByteBuf buf)
write in class DefinedPacketpublic void handle(AbstractPacketHandler handler) throws Exception
handle in class DefinedPacketExceptionpublic int getProtocolVersion()
public String getHost()
public int getPort()
public int getRequestedProtocol()
public void setProtocolVersion(int protocolVersion)
public void setHost(String host)
public void setPort(int port)
public void setRequestedProtocol(int requestedProtocol)
public String toString()
toString in class DefinedPacketpublic boolean equals(Object o)
equals in class DefinedPacketprotected boolean canEqual(Object other)
public int hashCode()
hashCode in class DefinedPacketCopyright © 2015–2019 WaterfallMC. All rights reserved.