LeviLamina
Loading...
Searching...
No Matches
CompassSpriteCalculator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class BlockPos;
9class BlockSource;
10// clang-format on
11
13public:
14 // CompassSpriteCalculator inner types define
15 using PointToTargetFunction = ::BlockPos (*)(::BlockSource const*, ::Actor*);
16
17 using IsPointingAtTargetFunction = bool (*)(::BlockSource const*, ::Actor*);
18
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::BlockPos (*)(::BlockSource const*, ::Actor*)> mTargetToPointTo;
23 ::ll::TypedStorage<8, 8, bool (*)(::BlockSource const*, ::Actor*)> mIsPointingAtTarget;
24 ::ll::TypedStorage<4, 4, int> mFrame;
25 ::ll::TypedStorage<4, 4, float> mRot;
26 ::ll::TypedStorage<4, 4, float> mRotA;
27 // NOLINTEND
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCAPI int update(::Actor& actor, bool instant);
33
34 MCAPI int updateFromPosition(
35 ::BlockSource const* region,
36 ::Actor* actor,
37 float x,
38 float z,
39 float yRot,
40 bool isZFlipped,
41 bool instant
42 );
43
44 MCAPI int updateFromPosition(
45 ::BlockSource const*,
46 ::BlockPos const& lookTowards,
47 float x,
48 float z,
49 float yRot,
50 bool isZFlipped,
51 bool instant,
52 bool spin
53 );
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCAPI static bool isInLastDeathDimension(::BlockSource const* region, ::Actor* actor);
60
61 MCAPI static bool isInOverworldDimension(::BlockSource const* region, ::Actor*);
62
63 MCAPI static ::BlockPos pointTowardsLastDeathLocation(::BlockSource const* region, ::Actor* actor);
64
65 MCAPI static ::BlockPos pointTowardsSpawnPoint(::BlockSource const* region, ::Actor*);
66 // NOLINTEND
67};
Definition Actor.h:102
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompassSpriteCalculator.h:12