Package net.minecraft.entity.passive
Class RabbitEntity.EatCarrotCropGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.passive.RabbitEntity.EatCarrotCropGoal
- Enclosing class:
- RabbitEntity
static class RabbitEntity.EatCarrotCropGoal extends MoveToTargetPosGoal
- Mappings:
Namespace Name official bcb$gintermediary net/minecraft/class_1463$class_1470named net/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private booleanhasTargetprivate RabbitEntityrabbitprivate booleanwantsCarrotsFields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime -
Constructor Summary
Constructors Constructor Description EatCarrotCropGoal(RabbitEntity rabbit) -
Method Summary
Modifier and Type Method Description booleancanStart()protected booleanisTargetPos(WorldView world, BlockPos pos)booleanshouldContinue()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldResetPath, start, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, stop, toString
-
Field Details
-
rabbit
- Mappings:
Namespace Name Mixin selector official gLbcb$g;g:Lbcb;intermediary field_6863Lnet/minecraft/class_1463$class_1470;field_6863:Lnet/minecraft/class_1463;named rabbitLnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;rabbit:Lnet/minecraft/entity/passive/RabbitEntity;
-
wantsCarrots
private boolean wantsCarrots- Mappings:
Namespace Name Mixin selector official hLbcb$g;h:Zintermediary field_6862Lnet/minecraft/class_1463$class_1470;field_6862:Znamed wantsCarrotsLnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;wantsCarrots:Z
-
hasTarget
private boolean hasTarget- Mappings:
Namespace Name Mixin selector official iLbcb$g;i:Zintermediary field_6861Lnet/minecraft/class_1463$class_1470;field_6861:Znamed hasTargetLnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;hasTarget:Z
-
-
Constructor Details
-
EatCarrotCropGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbcb$g;<init>(Lbcb;)Vintermediary <init>Lnet/minecraft/class_1463$class_1470;<init>(Lnet/minecraft/class_1463;)Vnamed <init>Lnet/minecraft/entity/passive/RabbitEntity$EatCarrotCropGoal;<init>(Lnet/minecraft/entity/passive/RabbitEntity;)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLawx;a()Zintermediary method_6264Lnet/minecraft/class_1352;method_6264()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official bLawx;b()Zintermediary method_6266Lnet/minecraft/class_1352;method_6266()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLawx;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLaxl;a(Lbty;Lfx;)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
-