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

Public Types

using OnGetSpawnCountCallback

Public Member Functions

MCAPI MobSpawnRules (::MobSpawnRules &&)
MCAPI MobSpawnRules (::MobSpawnRules const &)
MCAPI::MobSpawnRules & addPermutation (int weight, int guaranteedCount, ::ActorDefinitionIdentifier const &id)
MCAPI bool canSpawnInConditions (::SpawnConditions const &conditions, ::BlockSource &region) const
MCAPI::std::string const getMobToDelayId () const
MCAPI::MobSpawnRules & operator= (::MobSpawnRules &&)
MCAPI::MobSpawnRules & operator= (::MobSpawnRules const &)
MCAPI::MobSpawnHerdInfo const & selectRandomHerd (::IRandom &random) const
MCAPI::MobSpawnRules & setHardcodedSpawnRuleCallback (::std::function< bool(::SpawnConditions const &, ::BlockSource &)> callback)
MCAPI ~MobSpawnRules ()
MCAPI void * $ctor (::MobSpawnRules &&)
MCAPI void * $ctor (::MobSpawnRules const &)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::function< bool(::SpawnConditions const &, ::BlockSource &)> > mHardcodedCallbackRule
::ll::TypedStorage< 4, 4, int > mMinBrightness
::ll::TypedStorage< 4, 4, int > mMaxBrightness
::ll::TypedStorage< 4, 4, float > mMinMoonBrightness
::ll::TypedStorage< 4, 4, float > mMaxMoonBrightness
::ll::TypedStorage< 1, 1, bool > mAdjustForWeather
::ll::TypedStorage< 4, 4, int > mMinHeight
::ll::TypedStorage< 4, 4, int > mMaxHeight
::ll::TypedStorage< 4, 4, int > mRarity
::ll::TypedStorage< 4, 4, int > mSurfaceCap
::ll::TypedStorage< 4, 4, int > mUndergroundCap
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::Difficulty > mMinDifficulty
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::Difficulty > mMaxDifficulty
::ll::TypedStorage< 4, 4, int > mMinSpawnDistance
::ll::TypedStorage< 4, 4, int > mMaxSpawnDistance
::ll::TypedStorage< 4, 4, int > mSpawnDistanceCap
::ll::TypedStorage< 1, 1, bool > mSurfaceSpawner
::ll::TypedStorage< 1, 1, bool > mUndergroundSpawner
::ll::TypedStorage< 1, 1, bool > mWaterSpawner
::ll::TypedStorage< 1, 1, bool > mBubbleSpawner
::ll::TypedStorage< 1, 1, bool > mLavaSpawner
::ll::TypedStorage< 4, 4, uint > mPlayerInVillageDistance
::ll::TypedStorage< 4, 4, uint > mPlayerInVillageBorderTolerance
::ll::TypedStorage< 1, 1, bool > mExperimentalSpawner
::ll::TypedStorage< 8, 8, uint64 > mMinWorldAge
::ll::TypedStorage< 8, 8, uint64 > mMaxWorldAge
::ll::TypedStorage< 4, 4, int > mMinDelay
::ll::TypedStorage< 4, 4, int > mMaxDelay
::ll::TypedStorage< 8, 24, ::std::vector<::MobSpawnHerdInfo > > mHerdList
::ll::TypedStorage< 8, 24, ::std::vector<::MobSpawnerPermutation > > mPermutationList
::ll::TypedStorage< 8, 32, ::std::string > mMobEventName
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor > > mSpawnOnBlockList
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor > > mSpawnAboveBlockList
::ll::TypedStorage< 8, 24, ::std::vector<::BlockDescriptor > > mSpawnOnBlockPreventedList
::ll::TypedStorage< 4, 4, int > mAboveBlockDistance
::ll::TypedStorage< 8, 24, ::std::vector<::MobSpawnerPermutation > > mGuaranteedList
::ll::TypedStorage< 8, 32, ::std::string > mMobToDelayId
::ll::TypedStorage< 4, 4, int > mDelaySpawnChance
::ll::TypedStorage< 1, 1, bool > mPersistence

Member Typedef Documentation

◆ OnGetSpawnCountCallback

using MobSpawnRules::OnGetSpawnCountCallback
Initial value:
::std::function<int(::SpawnConditions const&, ::BlockSource&, ::Random&, ::MobSpawnerData const&)>
Definition BlockSource.h:72
Definition MobSpawnerData.h:17
Definition Random.h:10
Definition SpawnConditions.h:8

Constructor & Destructor Documentation

◆ MobSpawnRules() [1/2]

MCAPI MobSpawnRules::MobSpawnRules ( ::MobSpawnRules && )
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.

◆ MobSpawnRules() [2/2]

MCAPI MobSpawnRules::MobSpawnRules ( ::MobSpawnRules const & )
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.

◆ ~MobSpawnRules()

MCAPI MobSpawnRules::~MobSpawnRules ( )
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.

Member Function Documentation

◆ addPermutation()

MCAPI::MobSpawnRules & MobSpawnRules::addPermutation ( int weight,
int guaranteedCount,
::ActorDefinitionIdentifier const & id )
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.

◆ getMobToDelayId()

MCAPI::std::string const MobSpawnRules::getMobToDelayId ( ) const
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.

◆ operator=() [1/2]

MCAPI::MobSpawnRules & MobSpawnRules::operator= ( ::MobSpawnRules && )
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.

◆ operator=() [2/2]

MCAPI::MobSpawnRules & MobSpawnRules::operator= ( ::MobSpawnRules const & )
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.

◆ setHardcodedSpawnRuleCallback()

MCAPI::MobSpawnRules & MobSpawnRules::setHardcodedSpawnRuleCallback ( ::std::function< bool(::SpawnConditions const &, ::BlockSource &)> callback)
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.

◆ $ctor() [1/2]

MCAPI void * MobSpawnRules::$ctor ( ::MobSpawnRules && )
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.

◆ $ctor() [2/2]

MCAPI void * MobSpawnRules::$ctor ( ::MobSpawnRules const & )
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.

◆ $dtor()

MCAPI void MobSpawnRules::$dtor ( )
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: