Class WrapperHandshakingClientSetProtocol
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.handshaking.WrapperHandshakingClientSetProtocol
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperHandshakingClientSetProtocol
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value of field 'hostName'com.comphenix.protocol.PacketType.Protocol
Retrieves the value of field 'intention'int
getPort()
Retrieves the value of field 'port'int
Retrieves the value of field 'protocolVersion'void
setHostName
(String value) Sets the value of field 'hostName'void
setIntention
(com.comphenix.protocol.PacketType.Protocol value) Sets the value of field 'intention'void
setPort
(int value) Sets the value of field 'port'void
setProtocolVersion
(int value) Sets the value of field 'protocolVersion'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe packet type that is wrapped by this wrapper.
-
-
Constructor Details
-
WrapperHandshakingClientSetProtocol
public WrapperHandshakingClientSetProtocol() -
WrapperHandshakingClientSetProtocol
public WrapperHandshakingClientSetProtocol(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getProtocolVersion
public int getProtocolVersion()Retrieves the value of field 'protocolVersion'- Returns:
- 'protocolVersion'
-
setProtocolVersion
public void setProtocolVersion(int value) Sets the value of field 'protocolVersion'- Parameters:
value
- New value for field 'protocolVersion'
-
getHostName
Retrieves the value of field 'hostName'- Returns:
- 'hostName'
-
setHostName
Sets the value of field 'hostName'- Parameters:
value
- New value for field 'hostName'
-
getPort
public int getPort()Retrieves the value of field 'port'- Returns:
- 'port'
-
setPort
public void setPort(int value) Sets the value of field 'port'- Parameters:
value
- New value for field 'port'
-
getIntention
public com.comphenix.protocol.PacketType.Protocol getIntention()Retrieves the value of field 'intention'- Returns:
- 'intention'
-
setIntention
public void setIntention(com.comphenix.protocol.PacketType.Protocol value) Sets the value of field 'intention'- Parameters:
value
- New value for field 'intention'
-