Package net.minecraft.entity.passive
Class FoxEntity.EatSweetBerriesGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.passive.FoxEntity.EatSweetBerriesGoal
- Enclosing class:
- FoxEntity
- Mappings:
Namespace Name official bdp$fintermediary net/minecraft/class_4019$class_4025named net/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal
-
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, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
EATING_TIME
private static final int EATING_TIME- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official iLbdp$f;i:Iintermediary field_30336Lnet/minecraft/class_4019$class_4025;field_30336:Inamed EATING_TIMELnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;EATING_TIME:I
-
timer
protected int timer- Mappings:
Namespace Name Mixin selector official gLbdp$f;g:Iintermediary field_17974Lnet/minecraft/class_4019$class_4025;field_17974:Inamed timerLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;timer:I
-
-
Constructor Details
-
EatSweetBerriesGoal
public EatSweetBerriesGoal(double speed, int range, int maxYDifference)- Mappings:
Namespace Name Mixin selector official <init>Lbdp$f;<init>(Lbdp;DII)Vintermediary <init>Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)Vnamed <init>Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)V
-
-
Method Details
-
getDesiredSquaredDistanceToTarget
public double getDesiredSquaredDistanceToTarget()- Overrides:
getDesiredSquaredDistanceToTargetin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official hLazk;h()Dintermediary method_6291Lnet/minecraft/class_1367;method_6291()Dnamed getDesiredSquaredDistanceToTargetLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredSquaredDistanceToTarget()D
-
shouldResetPath
public boolean shouldResetPath()- Overrides:
shouldResetPathin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official kLazk;k()Zintermediary method_6294Lnet/minecraft/class_1367;method_6294()Znamed shouldResetPathLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLazk;a(Lbwb;Lgb;)Zintermediary method_6296Lnet/minecraft/class_1367;method_6296(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed isTargetPosLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLayx;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
eatSweetBerry
protected void eatSweetBerry()- Mappings:
Namespace Name Mixin selector official nLbdp$f;n()Vintermediary method_18307Lnet/minecraft/class_4019$class_4025;method_18307()Vnamed eatSweetBerryLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;eatSweetBerry()V
-
pickGlowBerries
- Mappings:
Namespace Name Mixin selector official aLbdp$f;a(Lcka;)Vintermediary method_33586Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)Vnamed pickGlowBerriesLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickGlowBerries(Lnet/minecraft/block/BlockState;)V
-
pickSweetBerries
- Mappings:
Namespace Name Mixin selector official bLbdp$f;b(Lcka;)Vintermediary method_33587Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)Vnamed pickSweetBerriesLnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickSweetBerries(Lnet/minecraft/block/BlockState;)V
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLayx;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
startin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official cLayx;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-