public class C2SHandshakePacket
extends java.lang.Object
implements net.raphimc.netminecraft.packet.IPacket
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
address |
net.raphimc.netminecraft.constants.ConnectionState |
intendedState |
int |
port |
int |
protocolVersion |
| Constructor and Description |
|---|
C2SHandshakePacket() |
C2SHandshakePacket(int protocolVersion,
java.lang.String address,
int port,
net.raphimc.netminecraft.constants.ConnectionState intendedState) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(io.netty.buffer.ByteBuf byteBuf) |
protected net.raphimc.netminecraft.constants.ConnectionState |
readConnectionState(io.netty.buffer.ByteBuf byteBuf) |
void |
write(io.netty.buffer.ByteBuf byteBuf) |
protected void |
writeConnectionState(io.netty.buffer.ByteBuf byteBuf,
net.raphimc.netminecraft.constants.ConnectionState state) |
public int protocolVersion
public java.lang.String address
public int port
public net.raphimc.netminecraft.constants.ConnectionState intendedState
public C2SHandshakePacket()
public C2SHandshakePacket(int protocolVersion,
java.lang.String address,
int port,
net.raphimc.netminecraft.constants.ConnectionState intendedState)
public void read(io.netty.buffer.ByteBuf byteBuf)
read in interface net.raphimc.netminecraft.packet.IPacketpublic void write(io.netty.buffer.ByteBuf byteBuf)
write in interface net.raphimc.netminecraft.packet.IPacketprotected net.raphimc.netminecraft.constants.ConnectionState readConnectionState(io.netty.buffer.ByteBuf byteBuf)
protected void writeConnectionState(io.netty.buffer.ByteBuf byteBuf,
net.raphimc.netminecraft.constants.ConnectionState state)