public class CrossfireMagicmapSkinEvent extends java.lang.Object implements SkinEvent
SkinEvent
that executes a CommandList
whenever a magicmap
protocol command is received.Modifier and Type | Field and Description |
---|---|
private CommandList |
commandList
The
CommandList to execute. |
private CrossfireMagicmapListener |
crossfireMagicmapListener
The
CrossfireMagicmapListener attached to server . |
private CrossfireServerConnection |
server
The
CrossfireServerConnection for tracking magicmap commands. |
Constructor and Description |
---|
CrossfireMagicmapSkinEvent(CommandList commandList,
CrossfireServerConnection server)
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 CrossfireMagicmapListener crossfireMagicmapListener
CrossfireMagicmapListener
attached to server
.@NotNull private final CrossfireServerConnection server
CrossfireServerConnection
for tracking magicmap commands.public CrossfireMagicmapSkinEvent(@NotNull CommandList commandList, @NotNull CrossfireServerConnection server)
commandList
- the command list to executeserver
- the connection to attach to