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, resume
public boolean isInstant()
EntityTask
isInstant
in class EntityTask
public int getDurationMin()
EntityTask
getDurationMin
in class EntityTask
public int getDurationMax()
EntityTask
getDurationMax
in class EntityTask
public boolean shouldStart(GlowLivingEntity entity)
EntityTask
shouldStart
in class EntityTask
entity
- the entity in question.public void start(GlowLivingEntity entity)
EntityTask
start
in class EntityTask
entity
- the entity in question.public void end(GlowLivingEntity entity)
EntityTask
end
in class EntityTask
entity
- the entity in question.public void execute(GlowLivingEntity entity)
EntityTask
execute
in class EntityTask
entity
- the entity in question.Copyright © 2021. All rights reserved.