public class MoveTowardsBlockGoal
extends net.minecraft.entity.ai.goal.Goal
Constructor and Description |
---|
MoveTowardsBlockGoal(PixelmonEntity pixelmon,
float targetDistance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canContinueToUse()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
canUse()
Returns whether the EntityAIBase should begin execution.
|
void |
start()
Execute a one shot task or start executing a continuous task
|
void |
stop()
Resets the task
|
public MoveTowardsBlockGoal(PixelmonEntity pixelmon, float targetDistance)
public boolean canUse()
canUse
in class net.minecraft.entity.ai.goal.Goal
public boolean canContinueToUse()
canContinueToUse
in class net.minecraft.entity.ai.goal.Goal
public void stop()
stop
in class net.minecraft.entity.ai.goal.Goal
public void start()
start
in class net.minecraft.entity.ai.goal.Goal