22 package com.realtime.crossfire.jxclient.gui.commands;
26 import org.jetbrains.annotations.NotNull;
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
A GUICommand which executes (i.e., simulates a left-button mouse click on) an GUIItem.
abstract void button1Clicked(final int modifiers)
Called when the left mouse button was pressed.
A GUIElement representing an in-game object.
final GUIItem item
The item element to execute.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
ExecuteElementCommand(@NotNull final GUIItem item)
Creates a new instance.