24 using OnGetSpawnCountCallback =
31 ::ll::TypedStorage<4, 4, int> mMinBrightness;
32 ::ll::TypedStorage<4, 4, int> mMaxBrightness;
33 ::ll::TypedStorage<4, 4, float> mMinMoonBrightness;
34 ::ll::TypedStorage<4, 4, float> mMaxMoonBrightness;
35 ::ll::TypedStorage<1, 1, bool> mAdjustForWeather;
36 ::ll::TypedStorage<4, 4, int> mMinHeight;
37 ::ll::TypedStorage<4, 4, int> mMaxHeight;
38 ::ll::TypedStorage<4, 4, int> mRarity;
39 ::ll::TypedStorage<4, 4, int> mSurfaceCap;
40 ::ll::TypedStorage<4, 4, int> mUndergroundCap;
41 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mMinDifficulty;
42 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::Difficulty> mMaxDifficulty;
43 ::ll::TypedStorage<4, 4, int> mMinSpawnDistance;
44 ::ll::TypedStorage<4, 4, int> mMaxSpawnDistance;
45 ::ll::TypedStorage<4, 4, int> mSpawnDistanceCap;
46 ::ll::TypedStorage<1, 1, bool> mSurfaceSpawner;
47 ::ll::TypedStorage<1, 1, bool> mUndergroundSpawner;
48 ::ll::TypedStorage<1, 1, bool> mWaterSpawner;
49 ::ll::TypedStorage<1, 1, bool> mBubbleSpawner;
50 ::ll::TypedStorage<1, 1, bool> mLavaSpawner;
51 ::ll::TypedStorage<4, 4, uint> mPlayerInVillageDistance;
52 ::ll::TypedStorage<4, 4, uint> mPlayerInVillageBorderTolerance;
53 ::ll::TypedStorage<1, 1, bool> mExperimentalSpawner;
54 ::ll::TypedStorage<8, 8, uint64> mMinWorldAge;
55 ::ll::TypedStorage<8, 8, uint64> mMaxWorldAge;
56 ::ll::TypedStorage<4, 4, int> mMinDelay;
57 ::ll::TypedStorage<4, 4, int> mMaxDelay;
58 ::ll::TypedStorage<8, 24, ::std::vector<::MobSpawnHerdInfo>> mHerdList;
59 ::ll::TypedStorage<8, 24, ::std::vector<::MobSpawnerPermutation>> mPermutationList;
60 ::ll::TypedStorage<8, 32, ::std::string> mMobEventName;
61 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mSpawnOnBlockList;
62 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mSpawnAboveBlockList;
63 ::ll::TypedStorage<8, 24, ::std::vector<::BlockDescriptor>> mSpawnOnBlockPreventedList;
64 ::ll::TypedStorage<4, 4, int> mAboveBlockDistance;
65 ::ll::TypedStorage<8, 24, ::std::vector<::MobSpawnerPermutation>> mGuaranteedList;
66 ::ll::TypedStorage<8, 32, ::std::string> mMobToDelayId;
67 ::ll::TypedStorage<4, 4, int> mDelaySpawnChance;
68 ::ll::TypedStorage<1, 1, bool> mPersistence;
74 MCAPI MobSpawnRules();
76 MCAPI MobSpawnRules(::MobSpawnRules&&);
78 MCAPI MobSpawnRules(::MobSpawnRules
const&);
84 MCFOLD
int getAboveBlockDistance()
const;
86 MCAPI ::std::pair<int, int>
const getDelayRange()
const;
88 MCFOLD
int getDelaySpawnChance()
const;
90 MCFOLD ::std::vector<::MobSpawnerPermutation>
const& getGuaranteedPermutations()
const;
92 MCFOLD ::std::vector<::MobSpawnHerdInfo>& getHerdListMutable();
94 MCAPI ::std::string
const getMobToDelayId()
const;
96 MCFOLD ::std::vector<::MobSpawnerPermutation>
const& getPermutations()
const;
98 MCAPI
bool getPersistence()
const;
102 MCFOLD ::std::vector<::BlockDescriptor>
const& getSpawnAboveBlockList()
const;
104 MCFOLD ::std::vector<::BlockDescriptor>& getSpawnAboveBlockListMutable();
106 MCAPI
int getSpawnCount(
113 MCFOLD ::std::vector<::BlockDescriptor>
const& getSpawnOnBlockList()
const;
115 MCFOLD ::std::vector<::BlockDescriptor>& getSpawnOnBlockListMutable();
117 MCFOLD ::std::vector<::BlockDescriptor>
const& getSpawnOnBlockPreventedList()
const;
119 MCFOLD ::std::vector<::BlockDescriptor>& getSpawnOnBlockPreventedListMutable();
121 MCFOLD
bool isLavaSpawner()
const;
123 MCFOLD
bool isUnderwaterSpawner()
const;
125 MCAPI ::MobSpawnRules& operator=(::MobSpawnRules&&);
127 MCAPI ::MobSpawnRules& operator=(::MobSpawnRules
const&);
129 MCAPI ::MobSpawnHerdInfo
const& selectRandomHerd(
::IRandom& random)
const;
131 MCAPI ::MobSpawnRules& setAboveBlockDistance(
int distance);
133 MCAPI ::MobSpawnRules& setBrightnessRange(
int minBrightness,
int maxBrightness,
bool adjustForWeather);
135 MCAPI ::MobSpawnRules& setBubbleSpawner(
bool isBubbleSpawner);
137 MCAPI ::MobSpawnRules& setDelayRange(
int min,
int max, ::std::string
const&
id);
139 MCFOLD ::MobSpawnRules& setDelaySpawnChance(
int chance);
141 MCAPI ::MobSpawnRules& setDifficultyRange(
142 ::SharedTypes::Legacy::Difficulty minDifficulty,
143 ::SharedTypes::Legacy::Difficulty maxDifficulty
146 MCAPI ::MobSpawnRules& setExperimentalGameplay();
148 MCAPI ::MobSpawnRules&
151 MCAPI ::MobSpawnRules& setHeightRange(
int minHeight,
int maxHeight);
153 MCAPI ::MobSpawnRules& setLavaSpawner();
155 MCAPI ::MobSpawnRules& setMobEventType(::std::string
const& eventName);
157 MCAPI ::MobSpawnRules& setPersistence(
bool persistence);
159 MCFOLD ::MobSpawnRules& setPlayerInVillageBorderTolerance(uint tolerance);
161 MCAPI ::MobSpawnRules& setPlayerInVillageDistance(uint distance);
163 MCAPI ::MobSpawnRules& setPopulationCap(
int surfaceCap,
int undergroundCap);
165 MCAPI ::MobSpawnRules& setRarity(
int rarity);
167 MCAPI ::MobSpawnRules& setSpawnDistanceCap(
int max);
169 MCAPI ::MobSpawnRules& setSpawnDistances(
int min,
int max);
171 MCAPI ::MobSpawnRules& setSurfaceSpawner();
173 MCAPI ::MobSpawnRules& setUndergroundSpawner();
175 MCAPI ::MobSpawnRules& setUnderwaterSpawner();
177 MCAPI ::MobSpawnRules& setWorldAgeRange(uint64 min, uint64 max);
179 MCAPI ~MobSpawnRules();
185 MCAPI
static int const& LOW_END_MAX_SPAWN_DISTANCE();
187 MCAPI
static int const& MAX_DEFAULT_SPAWN_DISTANCE();
189 MCAPI
static uint64
const& MAX_WORLD_AGE();
191 MCAPI
static int const& MIN_DEFAULT_SPAWN_DISTANCE();
199 MCAPI
void* $ctor(::MobSpawnRules&&);
201 MCAPI
void* $ctor(::MobSpawnRules
const&);