类 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 p_28680_, BlockPos p_28681_) protected void
private void
pickGlowBerry
(BlockState p_148927_) private void
pickSweetBerries
(BlockState p_148929_) 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, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, stop, toString
-
字段详细资料
-
WAIT_TICKS
private static final int WAIT_TICKS- 另请参阅:
-
ticksWaited
protected int ticksWaited
-
-
构造器详细资料
-
FoxEatBerriesGoal
public FoxEatBerriesGoal(double p_28675_, int p_28676_, int p_28677_)
-
-
方法详细资料
-
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
-