public class Action extends Object
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
void |
addTag(String tag)
Adds a metadata tag for this action
|
void |
bind()
Called right after this Action is bound to a group or member
|
boolean |
doTick() |
int |
elapsedTicks()
Gets the number of ticks that have elapsed since starting this action
|
long |
elapsedTimeMillis()
Gets the number of milliseconds that have elapsed since starting this action
|
MinecartGroup |
getGroup()
Gets the Minecart Group that applies to this Action.
|
boolean |
hasTag(String tag)
Checks whether a metadata tag is set for this action
|
boolean |
isFullTick()
Returns True when the current update() is the end of a new full tick.
|
void |
start() |
boolean |
update() |
public boolean doTick()
public MinecartGroup getGroup()
public final int elapsedTicks()
public final boolean isFullTick()
elapsedTicks()
will be incremented this update.public final long elapsedTimeMillis()
public void addTag(String tag)
tag
- public boolean hasTag(String tag)
tag
- public boolean update()
public void bind()
public void start()
Copyright © 2019. All rights reserved.