public class SitGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private boolean |
isSitting |
private TameableEntity |
tameable |
Constructor and Description |
---|
SitGoal(TameableEntity entityIn) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
void |
setSitting(boolean sitting) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
private final TameableEntity tameable
private boolean isSitting
public SitGoal(TameableEntity entityIn)
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public boolean shouldExecute()
shouldExecute
in class Goal
public void startExecuting()
startExecuting
in class Goal
public void setSitting(boolean sitting)