17class SleepGoal :
public ::MoveToPOIGoal {
21 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
22 ::ll::TypedStorage<4, 40, ::BedHelper> mBedHelper;
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBedPos;
24 ::ll::TypedStorage<4, 12, ::Vec3> mSleepPos;
25 ::ll::TypedStorage<4, 12, ::Vec3> mBedOffset;
26 ::ll::TypedStorage<4, 12, ::Vec3> mEnterPos;
27 ::ll::TypedStorage<4, 12, ::Vec3> mExitPos;
28 ::ll::TypedStorage<4, 4, int> mBedDir;
29 ::ll::TypedStorage<4, 4, float> mBodyRot;
30 ::ll::TypedStorage<4, 4, float const> mSleepYOffset;
31 ::ll::TypedStorage<4, 4, float const> mSleepColliderHeight;
32 ::ll::TypedStorage<4, 4, float const> mSleepColliderWidth;
33 ::ll::TypedStorage<1, 1, bool const> mCanSleepWhileRiding;
34 ::ll::TypedStorage<8, 8, ::Tick const> mGoalCooldownMax;
35 ::ll::TypedStorage<8, 8, ::Tick> mCooldownTick;
36 ::ll::TypedStorage<1, 1, bool> mWoken;
37 ::ll::TypedStorage<1, 1, bool> mGoalEndedEarly;
42 SleepGoal& operator=(SleepGoal
const&);
43 SleepGoal(SleepGoal
const&);
49 virtual bool canUse() ;
51 virtual void start() ;
57 virtual bool canContinueToUse() ;
59 virtual void appendDebugInfo(::std::string& str)
const ;
61 virtual uint64 _getRepathTime()
const ;
63 virtual ~SleepGoal() =
default;
69 MCAPI
void _findExitPos();
71 MCAPI
void _lockPosToBedPos();
87 MCAPI
bool $canContinueToUse();
89 MCAPI
void $appendDebugInfo(::std::string& str)
const;
91 MCFOLD uint64 $_getRepathTime()
const;