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 named net/minecraft/entity/passive/FoxEntity$EatBerriesGoalintermediary net/minecraft/class_4019$class_4025official cfo$f
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime -
Constructor Summary
Constructors -
Method Summary
Modifier 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.MoveToTargetPosGoal
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, shouldRunEveryTick, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, stop, toGoalTicks, toString
-
Field Details
-
EATING_TIME
private static final int EATING_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named EATING_TIMELnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;EATING_TIME:Iintermediary field_30336Lnet/minecraft/class_4019$class_4025;field_30336:Iofficial iLcfo$f;i:I
-
timer
protected int timer- Mappings:
Namespace Name Mixin selector named timerLnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;timer:Iintermediary field_17974Lnet/minecraft/class_4019$class_4025;field_17974:Iofficial gLcfo$f;g:I
-
-
Constructor Details
-
EatBerriesGoal
public EatBerriesGoal(double speed, int range, int maxYDifference) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)Vintermediary <init>Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)Vofficial <init>Lcfo$f;<init>(Lcfo;DII)V
-
-
Method Details
-
getDesiredDistanceToTarget
public double getDesiredDistanceToTarget()- Overrides:
getDesiredDistanceToTargetin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named getDesiredDistanceToTargetLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredDistanceToTarget()Dintermediary method_6291Lnet/minecraft/class_1367;method_6291()Dofficial iLcaz;i()D
-
shouldResetPath
public boolean shouldResetPath()- Overrides:
shouldResetPathin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named shouldResetPathLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Zintermediary method_6294Lnet/minecraft/class_1367;method_6294()Zofficial lLcaz;l()Z
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named isTargetPosLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_6296Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Zofficial aLcaz;a(Ldcz;Ljd;)Z
-
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/ai/goal/Goal;tick()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vofficial aLcam;a()V
-
eatBerries
protected void eatBerries()- Mappings:
Namespace Name Mixin selector named eatBerriesLnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;eatBerries()Vintermediary method_18307Lnet/minecraft/class_4019$class_4025;method_18307()Vofficial oLcfo$f;o()V
-
pickGlowBerries
- Mappings:
Namespace Name Mixin selector named pickGlowBerriesLnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;pickGlowBerries(Lnet/minecraft/block/BlockState;)Vintermediary method_33586Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)Vofficial aLcfo$f;a(Ldtc;)V
-
pickSweetBerries
- Mappings:
Namespace Name Mixin selector named pickSweetBerriesLnet/minecraft/entity/passive/FoxEntity$EatBerriesGoal;pickSweetBerries(Lnet/minecraft/block/BlockState;)Vintermediary method_33587Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)Vofficial bLcfo$f;b(Ldtc;)V
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Zofficial bLcam;b()Z
-
start
public void start()- Overrides:
startin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector named startLnet/minecraft/entity/ai/goal/Goal;start()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vofficial dLcam;d()V
-