public class ConnectionStateSkinEvent extends java.lang.Object implements SkinEvent
SkinEvent
that executes a CommandList
at connection setup.Modifier and Type | Field and Description |
---|---|
private CommandList |
commandList
The
CommandList to execute. |
private GuiStateListener |
guiStateListener
The
GuiStateListener attached to guiStateManager . |
private GuiStateManager |
guiStateManager
The
GuiStateManager to watch. |
Constructor and Description |
---|
ConnectionStateSkinEvent(CommandList commandList,
GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will be called when the skin is disposed.
|
@NotNull private final CommandList commandList
CommandList
to execute.@NotNull private final GuiStateListener guiStateListener
GuiStateListener
attached to guiStateManager
.@NotNull private final GuiStateManager guiStateManager
GuiStateManager
to watch.public ConnectionStateSkinEvent(@NotNull CommandList commandList, @NotNull GuiStateManager guiStateManager)
commandList
- the command list to executeguiStateManager
- the gui state manager to watch