Class 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
- Enclosing class:
- Fox
- 
Nested Class Summary
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalblockPos, mob, nextStartTick, speedModifier, tryTicks, verticalSearchStart
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublebooleancanUse()protected booleanisValidTarget(LevelReader p_28680_, BlockPos p_28681_) protected voidprivate voidpickGlowBerry(BlockState p_148927_) private voidpickSweetBerries(BlockState p_148929_) booleanvoidstart()voidtick()Methods inherited from class net.minecraft.world.entity.ai.goal.MoveToBlockGoalcanContinueToUse, findNearestBlock, getMoveToTarget, isReachedTarget, moveMobToBlock, nextStartTick, requiresUpdateEveryTickMethods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, stop, toString
- 
Field Details- 
WAIT_TICKSprivate static final int WAIT_TICKS- See Also:
 
- 
ticksWaitedprotected int ticksWaited
 
- 
- 
Constructor Details- 
FoxEatBerriesGoalpublic FoxEatBerriesGoal(double p_28675_, int p_28676_, int p_28677_) 
 
- 
- 
Method Details- 
acceptedDistancepublic double acceptedDistance()- Overrides:
- acceptedDistancein class- MoveToBlockGoal
 
- 
shouldRecalculatePathpublic boolean shouldRecalculatePath()- Overrides:
- shouldRecalculatePathin class- MoveToBlockGoal
 
- 
isValidTarget- Specified by:
- isValidTargetin class- MoveToBlockGoal
 
- 
tickpublic void tick()- Overrides:
- tickin class- MoveToBlockGoal
 
- 
onReachedTargetprotected void onReachedTarget()
- 
pickGlowBerry
- 
pickSweetBerries
- 
canUsepublic boolean canUse()- Overrides:
- canUsein class- MoveToBlockGoal
 
- 
startpublic void start()- Overrides:
- startin class- MoveToBlockGoal
 
 
-