Package net.minecraft.entity.passive
Class FoxEntity.EatBerriesGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.passive.FoxEntity.EatBerriesGoal
- Enclosing class:
- FoxEntity
- Mappings:
- Namespace - Name - official - brv$f- intermediary - net/minecraft/class_4019$class_4025- named - net/minecraft/entity/passive/FoxEntity$EatBerriesGoal
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFieldsFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoalcooldown, lowestY, mob, speed, targetPos, tryingTime
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanStart()protected voiddoubleprotected booleanisTargetPos(WorldView world, BlockPos pos) private voidpickGlowBerries(BlockState state) private voidpickSweetBerries(BlockState state) booleanvoidstart()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoalfindTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, shouldRunEveryTick, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.GoalcanStop, getControls, getTickCount, setControls, stop, toGoalTicks, toString
- 
Field Details- 
EATING_TIMEprivate static final int EATING_TIME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbrv$f;i:I- intermediary - field_30336- Lnet/minecraft/class_4019$class_4025;field_30336:I- named - EATING_TIME- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;EATING_TIME:I
 
- 
timerprotected int timer- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbrv$f;g:I- intermediary - field_17974- Lnet/minecraft/class_4019$class_4025;field_17974:I- named - timer- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;timer:I
 
 
- 
- 
Constructor Details- 
EatBerriesGoalpublic EatBerriesGoal(double speed, int range, int maxYDifference) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbrv$f;<init>(Lbrv;DII)V- intermediary - <init>- Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)V- named - <init>- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)V
 
 
- 
- 
Method Details- 
getDesiredDistanceToTargetpublic double getDesiredDistanceToTarget()- Overrides:
- getDesiredDistanceToTargetin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbni;i()D- intermediary - method_6291- Lnet/minecraft/class_1367;method_6291()D- named - getDesiredDistanceToTarget- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredDistanceToTarget()D
 
- 
shouldResetPathpublic boolean shouldResetPath()- Overrides:
- shouldResetPathin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbni;l()Z- intermediary - method_6294- Lnet/minecraft/class_1367;method_6294()Z- named - shouldResetPath- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
 
- 
isTargetPos- Specified by:
- isTargetPosin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbni;a(Lcmp;Lgu;)Z- intermediary - method_6296- Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- named - isTargetPos- Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
 
- 
tickpublic void tick()- Overrides:
- tickin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbmv;e()V- intermediary - method_6268- Lnet/minecraft/class_1352;method_6268()V- named - tick- Lnet/minecraft/entity/ai/goal/Goal;tick()V
 
- 
eatBerriesprotected void eatBerries()- Mappings:
- Namespace - Name - Mixin selector - official - o- Lbrv$f;o()V- intermediary - method_18307- Lnet/minecraft/class_4019$class_4025;method_18307()V- named - eatBerries- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;eatBerries()V
 
- 
pickGlowBerries- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbrv$f;a(Ldcb;)V- intermediary - method_33586- Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)V- named - pickGlowBerries- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;pickGlowBerries(Lnet/minecraft/block/BlockState;)V
 
- 
pickSweetBerries- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbrv$f;b(Ldcb;)V- intermediary - method_33587- Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)V- named - pickSweetBerries- Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;pickSweetBerries(Lnet/minecraft/block/BlockState;)V
 
- 
canStartpublic boolean canStart()- Overrides:
- canStartin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbmv;a()Z- intermediary - method_6264- Lnet/minecraft/class_1352;method_6264()Z- named - canStart- Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
 
- 
startpublic void start()- Overrides:
- startin class- MoveToTargetPosGoal
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbmv;c()V- intermediary - method_6269- Lnet/minecraft/class_1352;method_6269()V- named - start- Lnet/minecraft/entity/ai/goal/Goal;start()V
 
 
-