public abstract class UserAction extends Object
| Constructor and Description |
|---|
UserAction(String name)
Constructs new user action with given name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName() |
int |
hashCode() |
protected void |
onAction()
Called as long as the trigger is being held (pressed).
|
protected void |
onActionBegin()
Called once in the same tick when triggered.
|
protected void |
onActionEnd()
Called once in the same tick when trigger was released.
|
String |
toString() |
public UserAction(String name)
name - unique name that identifies this actionpublic final String getName()
protected void onActionBegin()
protected void onAction()
protected void onActionEnd()
Copyright © 2016. All rights reserved.