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
MCFOLD int getAboveBlockDistance () const
MCAPI ::std::pair< int, int > const getDelayRange () const
MCFOLD int getDelaySpawnChance () const
MCFOLD ::std::vector<::MobSpawnerPermutation > const & getGuaranteedPermutations () const
MCFOLD ::std::vector<::MobSpawnHerdInfo > & getHerdListMutable ()
MCAPI::std::string const getMobToDelayId () const
MCFOLD ::std::vector<::MobSpawnerPermutation > const & getPermutations () const
MCAPI bool getPersistence () const
MCAPI int getPopulationCap (::SpawnConditions const &conditions) const
MCFOLD ::std::vector<::BlockDescriptor > const & getSpawnAboveBlockList () const
MCFOLD ::std::vector<::BlockDescriptor > & getSpawnAboveBlockListMutable ()
MCAPI int getSpawnCount (::SpawnConditions const &conditions, ::BlockSource &region, ::Random &random, ::MobSpawnHerdInfo const &herdInfo) const
MCFOLD ::std::vector<::BlockDescriptor > const & getSpawnOnBlockList () const
MCFOLD ::std::vector<::BlockDescriptor > & getSpawnOnBlockListMutable ()
MCFOLD ::std::vector<::BlockDescriptor > const & getSpawnOnBlockPreventedList () const
MCFOLD ::std::vector<::BlockDescriptor > & getSpawnOnBlockPreventedListMutable ()
MCFOLD bool isLavaSpawner () const
MCFOLD bool isUnderwaterSpawner () const
MCAPI::MobSpawnRules & operator= (::MobSpawnRules &&)
MCAPI::MobSpawnRules & operator= (::MobSpawnRules const &)
MCAPI::MobSpawnHerdInfo const & selectRandomHerd (::IRandom &random) const
MCAPI::MobSpawnRules & setAboveBlockDistance (int distance)
MCAPI::MobSpawnRules & setBrightnessRange (int minBrightness, int maxBrightness, bool adjustForWeather)
MCAPI::MobSpawnRules & setBubbleSpawner (bool isBubbleSpawner)
MCAPI::MobSpawnRules & setDelayRange (int min, int max, ::std::string const &id)
MCFOLD::MobSpawnRules & setDelaySpawnChance (int chance)
MCAPI::MobSpawnRules & setDifficultyRange (::SharedTypes::Legacy::Difficulty minDifficulty, ::SharedTypes::Legacy::Difficulty maxDifficulty)
MCAPI::MobSpawnRules & setExperimentalGameplay ()
MCAPI::MobSpawnRules & setHardcodedSpawnRuleCallback (::std::function< bool(::SpawnConditions const &, ::BlockSource &)> callback)
MCAPI::MobSpawnRules & setHeightRange (int minHeight, int maxHeight)
MCAPI::MobSpawnRules & setLavaSpawner ()
MCAPI::MobSpawnRules & setMobEventType (::std::string const &eventName)
MCAPI::MobSpawnRules & setPersistence (bool persistence)
MCFOLD::MobSpawnRules & setPlayerInVillageBorderTolerance (uint tolerance)
MCAPI::MobSpawnRules & setPlayerInVillageDistance (uint distance)
MCAPI::MobSpawnRules & setPopulationCap (int surfaceCap, int undergroundCap)
MCAPI::MobSpawnRules & setRarity (int rarity)
MCAPI::MobSpawnRules & setSpawnDistanceCap (int max)
MCAPI::MobSpawnRules & setSpawnDistances (int min, int max)
MCAPI::MobSpawnRules & setSurfaceSpawner ()
MCAPI::MobSpawnRules & setUndergroundSpawner ()
MCAPI::MobSpawnRules & setUnderwaterSpawner ()
MCAPI::MobSpawnRules & setWorldAgeRange (uint64 min, uint64 max)
MCAPI void * $ctor ()
MCAPI void * $ctor (::MobSpawnRules &&)
MCAPI void * $ctor (::MobSpawnRules const &)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI int const & LOW_END_MAX_SPAWN_DISTANCE ()
static MCAPI int const & MAX_DEFAULT_SPAWN_DISTANCE ()
static MCAPI uint64 const & MAX_WORLD_AGE ()
static MCAPI int const & MIN_DEFAULT_SPAWN_DISTANCE ()

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:73
Definition MobSpawnerData.h:17
Definition Random.h:10
Definition SpawnConditions.h:13

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