类 Fox.FoxEatBerriesGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveToBlockGoal
net.minecraft.world.entity.animal.Fox.FoxEatBerriesGoal
- 封闭类:
- Fox
-
嵌套类概要
-
字段概要
字段从类继承的字段 net.minecraft.world.entity.ai.goal.MoveToBlockGoal
blockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明double
boolean
canUse()
protected boolean
isValidTarget
(LevelReader pLevel, BlockPos pPos) protected void
private void
pickGlowBerry
(BlockState pState) private void
pickSweetBerries
(BlockState pState) boolean
void
start()
void
tick()
从类继承的方法 net.minecraft.world.entity.ai.goal.MoveToBlockGoal
canContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTick
从类继承的方法 net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
-
字段详细资料
-
WAIT_TICKS
private static final int WAIT_TICKS- 另请参阅:
-
ticksWaited
protected int ticksWaited
-
-
构造器详细资料
-
FoxEatBerriesGoal
public FoxEatBerriesGoal(double pSpeedModifier, int pSearchRange, int pVerticalSearchRange)
-
-
方法详细资料
-
acceptedDistance
public double acceptedDistance()- 覆盖:
acceptedDistance
在类中MoveToBlockGoal
-
shouldRecalculatePath
public boolean shouldRecalculatePath()- 覆盖:
shouldRecalculatePath
在类中MoveToBlockGoal
-
isValidTarget
- 指定者:
isValidTarget
在类中MoveToBlockGoal
-
tick
public void tick()- 覆盖:
tick
在类中MoveToBlockGoal
-
onReachedTarget
protected void onReachedTarget() -
pickGlowBerry
-
pickSweetBerries
-
canUse
public boolean canUse()- 覆盖:
canUse
在类中MoveToBlockGoal
-
start
public void start()- 覆盖:
start
在类中MoveToBlockGoal
-