Package net.minecraft.entity.ai.goal
Class GoToBedAndSleepGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.GoToBedAndSleepGoal
Makes a
CatEntity go to a bed and sleep.- Mappings:
Namespace Name official bmgintermediary net/minecraft/class_3697named net/minecraft/entity/ai/goal/GoToBedAndSleepGoal
-
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
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredDistanceToTarget, getTargetPos, hasReached, shouldContinue, shouldResetPath, shouldRunEveryTick, startMovingToTargetMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
cat
- Mappings:
Namespace Name Mixin selector official gLbmg;g:Lbrm;intermediary field_16282Lnet/minecraft/class_3697;field_16282:Lnet/minecraft/class_1451;named catLnet/minecraft/entity/ai/goal/GoToBedAndSleepGoal;cat:Lnet/minecraft/entity/passive/CatEntity;
-
-
Constructor Details
-
GoToBedAndSleepGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbmg;<init>(Lbrm;DI)Vintermediary <init>Lnet/minecraft/class_3697;<init>(Lnet/minecraft/class_1451;DI)Vnamed <init>Lnet/minecraft/entity/ai/goal/GoToBedAndSleepGoal;<init>(Lnet/minecraft/entity/passive/CatEntity;DI)V
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStartin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLbmt;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 cLbmt;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
getInterval
- Overrides:
getIntervalin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official aLbng;a(Lbgg;)Iintermediary method_6293Lnet/minecraft/class_1367;method_6293(Lnet/minecraft/class_1314;)Inamed getIntervalLnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;getInterval(Lnet/minecraft/entity/mob/PathAwareEntity;)I
-
stop
public void stop() -
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal- Mappings:
Namespace Name Mixin selector official eLbmt;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 aLbng;a(Lcmn;Lgu;)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
-