Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CompassSpriteCalculator Class Reference

Public Types

using IsPointingAtTargetFunction = bool (*)(::BlockSource const*, ::Actor*)
using PointToTargetFunction = ::BlockPos (*)(::BlockSource const*, ::Actor*)

Public Member Functions

MCAPI int updateFromPosition (::BlockSource const *region, ::Actor *actor, float x, float z, float yRot, bool isZFlipped, bool instant)

Static Public Member Functions

static MCAPI bool isInLastDeathDimension (::BlockSource const *region, ::Actor *actor)
static MCAPI bool isInOverworldDimension (::BlockSource const *region, ::Actor *)
static MCAPI ::BlockPos pointTowardsLastDeathLocation (::BlockSource const *region, ::Actor *actor)
static MCAPI ::BlockPos pointTowardsSpawnPoint (::BlockSource const *region, ::Actor *)

Public Attributes

::ll::TypedStorage< 8, 8, ::BlockPos(*)(::BlockSource const *, ::Actor *)> mTargetToPointTo
::ll::TypedStorage< 8, 8, bool(*)(::BlockSource const *, ::Actor *)> mIsPointingAtTarget
::ll::TypedStorage< 4, 4, int > mFrame
::ll::TypedStorage< 4, 4, float > mRot
::ll::TypedStorage< 4, 4, float > mRotA
::ll::TypedStorage< 4, 4, int > mLastUpdatedAt

Member Function Documentation

◆ updateFromPosition()

MCAPI int CompassSpriteCalculator::updateFromPosition ( ::BlockSource const * region,
::Actor * actor,
float x,
float z,
float yRot,
bool isZFlipped,
bool instant )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isInLastDeathDimension()

MCAPI bool CompassSpriteCalculator::isInLastDeathDimension ( ::BlockSource const * region,
::Actor * actor )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ isInOverworldDimension()

MCAPI bool CompassSpriteCalculator::isInOverworldDimension ( ::BlockSource const * region,
::Actor *  )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ pointTowardsLastDeathLocation()

MCAPI ::BlockPos CompassSpriteCalculator::pointTowardsLastDeathLocation ( ::BlockSource const * region,
::Actor * actor )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ pointTowardsSpawnPoint()

MCAPI ::BlockPos CompassSpriteCalculator::pointTowardsSpawnPoint ( ::BlockSource const * region,
::Actor *  )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: