Package net.minecraft.entity.passive
Class FoxEntity.EatBerriesGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToBlockGoal
net.minecraft.entity.passive.FoxEntity.EatBerriesGoal
- Enclosing class:
- FoxEntity
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
boolean
canUse()
protected boolean
isValidTarget
(IWorldReader p_179488_1_, BlockPos p_179488_2_) protected void
boolean
void
start()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick
-
Field Details
-
ticksWaited
protected int ticksWaited
-
-
Constructor Details
-
EatBerriesGoal
public EatBerriesGoal(double p_i50737_2_, int p_i50737_4_, int p_i50737_5_)
-
-
Method Details
-
acceptedDistance
public double acceptedDistance()- Overrides:
acceptedDistance
in classMoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()- Overrides:
shouldRecalculatePath
in classMoveToBlockGoal
-
isValidTarget
- Specified by:
isValidTarget
in classMoveToBlockGoal
-
tick
public void tick()- Overrides:
tick
in classMoveToBlockGoal
-
onReachedTarget
protected void onReachedTarget() -
canUse
public boolean canUse()- Overrides:
canUse
in classMoveToBlockGoal
-
start
public void start()- Overrides:
start
in classMoveToBlockGoal
-