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)

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