Class CHandshakePacket
- java.lang.Object
-
- net.minecraft.network.handshake.client.CHandshakePacket
-
- All Implemented Interfaces:
IPacket<IHandshakeNetHandler>
public class CHandshakePacket extends java.lang.Object implements IPacket<IHandshakeNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fmlVersion
private java.lang.String
hostName
private ProtocolType
intention
private int
port
private int
protocolVersion
-
Constructor Summary
Constructors Constructor Description CHandshakePacket()
CHandshakePacket(java.lang.String p_i47613_1_, int p_i47613_2_, ProtocolType p_i47613_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFMLVersion()
ProtocolType
getIntention()
int
getProtocolVersion()
void
handle(IHandshakeNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Field Detail
-
protocolVersion
private int protocolVersion
-
hostName
private java.lang.String hostName
-
port
private int port
-
intention
private ProtocolType intention
-
fmlVersion
private java.lang.String fmlVersion
-
-
Constructor Detail
-
CHandshakePacket
public CHandshakePacket()
-
CHandshakePacket
public CHandshakePacket(java.lang.String p_i47613_1_, int p_i47613_2_, ProtocolType p_i47613_3_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IHandshakeNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IHandshakeNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IHandshakeNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IHandshakeNetHandler>
-
getIntention
public ProtocolType getIntention()
-
getProtocolVersion
public int getProtocolVersion()
-
getFMLVersion
public java.lang.String getFMLVersion()
-
-