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

Static Public Member Functions

static MCAPI ::std::optional<::Vec3 > generateRandomPos (::IRandom &random, ::Mob &mob, int xzDist, int yDist, int yOffset, ::Vec3 const *dir, bool canFly, bool canSwim, ::IntRange const &hoverHeight, int tries, ::SolidityCheckType blockTest)
static MCAPI ::std::optional<::Vec3 > generateRandomSpawnPos (::BlockSource &region, ::Random &random, ::Vec3 const &inPos, int numAttempts, int xzDist, int yDist, ::Vec3 *dir)
static MCAPI ::std::optional<::Vec3 > getPos (::Mob &mob, int xzDist, int yDist, int tries, ::SolidityCheckType blockTest)
static MCAPI ::std::optional<::Vec3 > getPosAvoid (::Mob &mob, int xzDist, int yDist, ::Vec3 const &avoidPos, ::SolidityCheckType blockTest, int tries)
static MCAPI ::std::optional<::Vec3 > getPosInDirection (::Mob &mob, int xzDist, int yDist, int yOffset, bool canFly, bool canSwim, ::Vec3 *direction, ::IntRange const &hoverHeight, int tries, ::SolidityCheckType blockTest)
static MCAPI ::std::optional<::Vec3 > getPosTowards (::Mob &mob, int xzDist, int yDist, ::Vec3 const &towardsPos)

Member Function Documentation

◆ generateRandomPos()

MCAPI ::std::optional<::Vec3 > RandomPos::generateRandomPos ( ::IRandom & random,
::Mob & mob,
int xzDist,
int yDist,
int yOffset,
::Vec3 const * dir,
bool canFly,
bool canSwim,
::IntRange const & hoverHeight,
int tries,
::SolidityCheckType blockTest )
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.

◆ generateRandomSpawnPos()

MCAPI ::std::optional<::Vec3 > RandomPos::generateRandomSpawnPos ( ::BlockSource & region,
::Random & random,
::Vec3 const & inPos,
int numAttempts,
int xzDist,
int yDist,
::Vec3 * dir )
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.

◆ getPos()

MCAPI ::std::optional<::Vec3 > RandomPos::getPos ( ::Mob & mob,
int xzDist,
int yDist,
int tries,
::SolidityCheckType blockTest )
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.

◆ getPosInDirection()

MCAPI ::std::optional<::Vec3 > RandomPos::getPosInDirection ( ::Mob & mob,
int xzDist,
int yDist,
int yOffset,
bool canFly,
bool canSwim,
::Vec3 * direction,
::IntRange const & hoverHeight,
int tries,
::SolidityCheckType blockTest )
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.

◆ getPosTowards()

MCAPI ::std::optional<::Vec3 > RandomPos::getPosTowards ( ::Mob & mob,
int xzDist,
int yDist,
::Vec3 const & towardsPos )
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: