public class PlayerNameTracker
extends java.lang.Object
GuiStateManager
and updates a JXCConnection
's
character name.Modifier and Type | Field and Description |
---|---|
private JXCConnection |
connection
The
JXCConnection to track. |
private GuiStateListener |
guiStateListener
The
GuiStateListener for detecting established or dropped
connections. |
private ItemSet |
itemSet
The
ItemSet to track. |
private ItemSetListener |
itemSetListener
The listener to detect a changed player name.
|
Constructor and Description |
---|
PlayerNameTracker(GuiStateManager guiStateManager,
JXCConnection connection,
ItemSet itemSet)
Creates a new instance.
|
@NotNull private final JXCConnection connection
JXCConnection
to track.@NotNull private final GuiStateListener guiStateListener
GuiStateListener
for detecting established or dropped
connections.@NotNull private final ItemSetListener itemSetListener
public PlayerNameTracker(@NotNull GuiStateManager guiStateManager, @NotNull JXCConnection connection, @NotNull ItemSet itemSet)
guiStateManager
- the gui state manager to trackconnection
- the connection to trackitemSet
- the item set to track