Package com.comphenix.protocol.wrappers
Class WrappedRemoteChatSessionData
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedRemoteChatSessionData
A wrapper around the remote chat session.
- Since:
- 1.19.3
-
Field Summary
Fields inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
handle, handleType -
Constructor Summary
ConstructorsConstructorDescriptionWrappedRemoteChatSessionData(Object handle) Constructs a new profile public key wrapper directly from a nms RemoteChatSession.Data/RemoteChatSession.a object.WrappedRemoteChatSessionData(UUID sessionId, WrappedProfilePublicKey.WrappedProfileKeyData profilePublicKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WrappedRemoteChatSessionDatafromPlayer(org.bukkit.entity.Player player) Retrieves the current session data of the playerRetrieves the ProfileKeyDataRetrieves the id of the current sessioninthashCode()protected voidSet the underlying NMS object.voidSet the profile key data for this sessionvoidsetSessionID(UUID sessionId) Set the id for this sessiontoString()Methods inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
getHandle, getHandleType
-
Constructor Details
-
WrappedRemoteChatSessionData
Constructs a new profile public key wrapper directly from a nms RemoteChatSession.Data/RemoteChatSession.a object.- Parameters:
handle- the handle to create the wrapper from.
-
WrappedRemoteChatSessionData
public WrappedRemoteChatSessionData(UUID sessionId, WrappedProfilePublicKey.WrappedProfileKeyData profilePublicKey)
-
-
Method Details
-
getSessionID
Retrieves the id of the current session- Returns:
- session id
-
setSessionID
Set the id for this session- Parameters:
sessionId- new session id
-
getProfilePublicKey
Retrieves the ProfileKeyData- Returns:
- the public key data for this session
-
setProfilePublicKey
Set the profile key data for this session- Parameters:
data- ProfileKeyData
-
setHandle
Description copied from class:AbstractWrapperSet the underlying NMS object.- Overrides:
setHandlein classAbstractWrapper- Parameters:
handle- - the NMS object.
-
equals
- Overrides:
equalsin classAbstractWrapper
-
toString
- Overrides:
toStringin classAbstractWrapper
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractWrapper
-
fromPlayer
Retrieves the current session data of the player- Returns:
- Wrapper for session data or null if not present
- Since:
- 1.19.4
-