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.PacketTypeThe 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.ProtocolRetrieves the value of field 'intention'intgetPort()Retrieves the value of field 'port'intRetrieves the value of field 'protocolVersion'voidsetHostName(String value) Sets the value of field 'hostName'voidsetIntention(com.comphenix.protocol.PacketType.Protocol value) Sets the value of field 'intention'voidsetPort(int value) Sets the value of field 'port'voidsetProtocolVersion(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'
-