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 beg$f
intermediary net/minecraft/class_4019$class_4025
named 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
Fields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canStart()
protected void
double
protected boolean
isTargetPos(WorldView world, BlockPos pos)
private void
pickGlowBerries(BlockState state)
private void
pickSweetBerries(BlockState state)
boolean
void
start()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getInterval, getTargetPos, hasReached, shouldContinue, startMovingToTarget
Methods 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 i
Lbeg$f;i:I
intermediary field_30336
Lnet/minecraft/class_4019$class_4025;field_30336:I
named EATING_TIME
Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;EATING_TIME:I
-
timer
protected int timer- Mappings:
Namespace Name Mixin selector official g
Lbeg$f;g:I
intermediary field_17974
Lnet/minecraft/class_4019$class_4025;field_17974:I
named timer
Lnet/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>
Lbeg$f;<init>(Lbeg;DII)V
intermediary <init>
Lnet/minecraft/class_4019$class_4025;<init>(Lnet/minecraft/class_4019;DII)V
named <init>
Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;<init>(Lnet/minecraft/entity/passive/FoxEntity;DII)V
-
-
Method Details
-
getDesiredSquaredDistanceToTarget
public double getDesiredSquaredDistanceToTarget()- Overrides:
getDesiredSquaredDistanceToTarget
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official h
Lbab;h()D
intermediary method_6291
Lnet/minecraft/class_1367;method_6291()D
named getDesiredSquaredDistanceToTarget
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getDesiredSquaredDistanceToTarget()D
-
shouldResetPath
public boolean shouldResetPath()- Overrides:
shouldResetPath
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official k
Lbab;k()Z
intermediary method_6294
Lnet/minecraft/class_1367;method_6294()Z
named shouldResetPath
Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;shouldResetPath()Z
-
isTargetPos
- Specified by:
isTargetPos
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official a
Lbab;a(Lbws;Lgg;)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
-
tick
public void tick()- Overrides:
tick
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official e
Lazo;e()V
intermediary method_6268
Lnet/minecraft/class_1352;method_6268()V
named tick
Lnet/minecraft/entity/ai/goal/Goal;tick()V
-
eatSweetBerry
protected void eatSweetBerry()- Mappings:
Namespace Name Mixin selector official n
Lbeg$f;n()V
intermediary method_18307
Lnet/minecraft/class_4019$class_4025;method_18307()V
named eatSweetBerry
Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;eatSweetBerry()V
-
pickGlowBerries
- Mappings:
Namespace Name Mixin selector official a
Lbeg$f;a(Lcks;)V
intermediary method_33586
Lnet/minecraft/class_4019$class_4025;method_33586(Lnet/minecraft/class_2680;)V
named pickGlowBerries
Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickGlowBerries(Lnet/minecraft/block/BlockState;)V
-
pickSweetBerries
- Mappings:
Namespace Name Mixin selector official b
Lbeg$f;b(Lcks;)V
intermediary method_33587
Lnet/minecraft/class_4019$class_4025;method_33587(Lnet/minecraft/class_2680;)V
named pickSweetBerries
Lnet/minecraft/entity/passive/FoxEntity$EatSweetBerriesGoal;pickSweetBerries(Lnet/minecraft/block/BlockState;)V
-
canStart
public boolean canStart()- Overrides:
canStart
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official a
Lazo;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
start
public void start()- Overrides:
start
in classMoveToTargetPosGoal
- Mappings:
Namespace Name Mixin selector official c
Lazo;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-