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
public class FoxEntity.EatBerriesGoal extends MoveToBlockGoal
-
-
Field Summary
Fields Modifier and Type Field Description protected int
ticksWaited
-
Fields inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
-
Constructor Summary
Constructors Constructor Description EatBerriesGoal(double p_i50737_2_, int p_i50737_4_, int p_i50737_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
acceptedDistance()
boolean
canUse()
protected boolean
isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
protected void
onReachedTarget()
boolean
shouldRecalculatePath()
void
start()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.MoveToBlockGoal
canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick
-
-
-
-
Method Detail
-
acceptedDistance
public double acceptedDistance()
- Overrides:
acceptedDistance
in classMoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()
- Overrides:
shouldRecalculatePath
in classMoveToBlockGoal
-
isValidTarget
protected boolean isValidTarget(IWorldReader p_179488_1_, BlockPos p_179488_2_)
- 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
-
-