public class FollowPlayerTask extends EntityTask
| Constructor and Description |
|---|
FollowPlayerTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
end(GlowLivingEntity entity)
Invoked when this task is being ended for this entity.
|
void |
execute(GlowLivingEntity entity)
Invoked each tick when this task is being executed for this entity.
|
int |
getDurationMax()
The maximum duration of this task.
|
int |
getDurationMin()
The minimum duration of this task.
|
boolean |
isInstant()
Whether this task is instant.
|
boolean |
shouldStart(GlowLivingEntity entity)
Whether the task should begin executing for this entity.
|
void |
start(GlowLivingEntity entity)
Invoked when this task is about to start for this entity.
|
compareTo, getName, isExecuting, isPaused, pause, pulse, reset, resumepublic boolean isInstant()
EntityTaskisInstant in class EntityTaskpublic int getDurationMin()
EntityTaskgetDurationMin in class EntityTaskpublic int getDurationMax()
EntityTaskgetDurationMax in class EntityTaskpublic boolean shouldStart(GlowLivingEntity entity)
EntityTaskshouldStart in class EntityTaskentity - the entity in question.public void start(GlowLivingEntity entity)
EntityTaskstart in class EntityTaskentity - the entity in question.public void end(GlowLivingEntity entity)
EntityTaskend in class EntityTaskentity - the entity in question.public void execute(GlowLivingEntity entity)
EntityTaskexecute in class EntityTaskentity - the entity in question.Copyright © 2021. All rights reserved.