static class RabbitEntity.EatCarrotCropGoal extends MoveToTargetPosGoal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasTarget |
private RabbitEntity |
rabbit |
private boolean |
wantsCarrots |
cooldown, lowestY, mob, speed, targetPos, tryingTime| Constructor and Description |
|---|
EatCarrotCropGoal(RabbitEntity rabbit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
protected boolean |
isTargetPos(WorldView world,
BlockPos pos) |
boolean |
shouldContinue() |
void |
tick() |
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldResetPath, start, startMovingToTargetcanStop, getControls, setControls, stop, toStringprivate final RabbitEntity rabbit
private boolean wantsCarrots
private boolean hasTarget
public EatCarrotCropGoal(RabbitEntity rabbit)
public boolean canStart()
canStart in class MoveToTargetPosGoalpublic boolean shouldContinue()
shouldContinue in class MoveToTargetPosGoalpublic void tick()
tick in class MoveToTargetPosGoalprotected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos in class MoveToTargetPosGoal