public class ScrollCommand extends java.lang.Object implements GUICommand
GUICommand which scrolls a GUIScrollable gui element by a
given distance.| Constructor and Description |
|---|
ScrollCommand(int distance,
@NotNull GUIScrollable scrollable)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
public ScrollCommand(int distance,
@NotNull
@NotNull GUIScrollable scrollable)
distance - the distance to scrollscrollable - the scrollable elementpublic boolean canExecute()
GUICommandcanExecute in interface GUICommandpublic void execute()
GUICommandGUICommand.canExecute()
returns false.execute in interface GUICommand