25 using GameRuleMap = ::std::vector<::GameRule>;
27 using WorldPolicyMap = ::std::map<::HashedString, ::GameRule>;
29 enum class GameRulesIndex :
int {
31 CommandBlockOutput = 0,
36 DoLimitedCrafting = 5,
49 DoNaturalRegeneration = 18,
51 SendCommandFeedback = 20,
52 MaxCommandChainLength = 21,
54 CommandBlocksEnabled = 23,
56 DoImmediateRespawn = 25,
57 ShowDeathMessages = 26,
58 FunctionCommandLimit = 27,
59 PlayerSpawnRadius = 28,
62 RespawnBlocksExplode = 31,
63 ShowBorderEffect = 32,
64 ShowRecipeMessages = 33,
65 PlayerSleepingPercentage = 34,
66 ProjectilesCanBreakBlocks = 35,
67 TntExplosionDropDecay = 36,
68 VanillaGameRuleCount = 37,
70 AllowDestructiveObjects = 38,
74 EduGameRuleCount = 42,
81 ::ll::TypedStorage<8, 24, ::std::vector<::GameRule>> mGameRules;
82 ::ll::TypedStorage<8, 16, ::std::map<::HashedString, ::GameRule>> mWorldPolicies;
88 mGameRuleChangePublisher;
105 MCAPI ::GameRule& _registerRule(::std::string
const& name,
::GameRuleId rule);
107 MCAPI
void _registerRules();
109 MCAPI ::std::unique_ptr<::GameRulesChangedPacket> _setGameRule(
112 ::GameRule::Type type,
115 bool* pValueValidated,
119 MCAPI ::std::unique_ptr<::GameRulesChangedPacket> createAllGameRulesPacket()
const;
123 MCAPI
bool getBool(
::GameRuleId ruleType,
bool defaultValue)
const;
129 MCAPI ::GameRuleId nameToGameRuleIndex(::std::string
const& name)
const;
131 MCAPI ::GameRules& operator=(
::GameRules const& rhs);
133 MCAPI
void setMarketplaceOverrides();
135 MCAPI ::std::unique_ptr<::GameRulesChangedPacket> setRule(
140 bool* pValueValidated,
150 MCAPI static ::std::map<::GameRuleId, ::GameRule>
const& _getMarketplaceGameRulesDefaultMap();
156 MCAPI
static int const& MAX_FUNCTIONCOMMANDLIMIT();
158 MCAPI static ::std::string
const& WORLD_POLICY_TAG_NAME();
178 MCAPI
static void** $vftable();