LeviLamina
Loading...
Searching...
No Matches
RandomPos Class Reference

Static Public Member Functions

static MCAPI ::std::optional<::Vec3generateRandomPos (::Mob &mob, int xzDist, int yDist, ::Vec3 const *dir, bool canFly, bool canSwim, int tries, ::SolidityCheckType blockTest)
 
static MCAPI ::std::optional<::Vec3generateRandomPos (::Randomize &randomize, ::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<::Vec3generateRandomSpawnPos (::BlockSource &region, ::Random &random, ::Vec3 const &inPos, int numAttempts, int xzDist, int yDist, ::Vec3 *dir)
 
static MCAPI ::std::optional<::Vec3getPos (::Mob &mob, int xzDist, int yDist, int tries, ::SolidityCheckType blockTest)
 
static MCAPI ::std::optional<::Vec3getPosAvoid (::Mob &mob, int xzDist, int yDist, ::Vec3 const &avoidPos, ::SolidityCheckType blockTest, int tries)
 
static MCAPI ::std::optional<::Vec3getPosInDirection (::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<::Vec3getPosTowards (::Mob &mob, int xzDist, int yDist, ::Vec3 const &towardsPos)
 
static MCAPI ::std::optional<::Vec3getPosTowards (::Random &random, ::Mob &mob, int xzDist, int yDist, ::Vec3 const &towardsPos)
 
static MCAPI bool snapToGround (::BlockPos &inOutPos, ::Mob &mob, int yDist, ::IntRange const &hoverHeight, ::SolidityCheckType blockTest)
 
static MCAPI bool spawnSnapToGround (::BlockSource &region, ::BlockPos &inOutPos, float startingY, int yDist)
 

Member Function Documentation

◆ generateRandomPos() [1/2]

static MCAPI ::std::optional<::Vec3 > RandomPos::generateRandomPos ( ::Mob & mob,
int xzDist,
int yDist,
::Vec3 const * dir,
bool canFly,
bool canSwim,
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.

◆ generateRandomPos() [2/2]

static MCAPI ::std::optional<::Vec3 > RandomPos::generateRandomPos ( ::Randomize & randomize,
::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()

static 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()

static 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.

◆ getPosAvoid()

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

static 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() [1/2]

static 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.

◆ getPosTowards() [2/2]

static MCAPI ::std::optional<::Vec3 > RandomPos::getPosTowards ( ::Random & random,
::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.

◆ snapToGround()

static MCAPI bool RandomPos::snapToGround ( ::BlockPos & inOutPos,
::Mob & mob,
int yDist,
::IntRange const & hoverHeight,
::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.

◆ spawnSnapToGround()

static MCAPI bool RandomPos::spawnSnapToGround ( ::BlockSource & region,
::BlockPos & inOutPos,
float startingY,
int yDist )
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: