24 enum class GameRulesIndex :
int {
26 CommandBlockOutput = 0,
31 DoLimitedCrafting = 5,
44 LocatorBarDeprecated = 18,
46 DoNaturalRegeneration = 20,
48 SendCommandFeedback = 22,
49 MaxCommandChainLength = 23,
51 CommandBlocksEnabled = 25,
53 DoImmediateRespawn = 27,
54 ShowDeathMessages = 28,
55 FunctionCommandLimit = 29,
56 PlayerSpawnRadius = 30,
59 RespawnBlocksExplode = 33,
60 ShowBorderEffect = 34,
61 ShowRecipeMessages = 35,
62 PlayerSleepingPercentage = 36,
63 ProjectilesCanBreakBlocks = 37,
64 TntExplosionDropDecay = 38,
65 VanillaGameRuleCount = 39,
67 AllowDestructiveObjects = 40,
71 EduGameRuleCount = 44,
75 using GameRuleMap = ::std::vector<::GameRule>;
77 using WorldPolicyMap = ::std::map<::HashedString, ::GameRule>;
82 ::ll::TypedStorage<8, 24, ::std::vector<::GameRule>> mGameRules;
83 ::ll::TypedStorage<8, 16, ::std::map<::HashedString, ::GameRule>> mWorldPolicies;
89 mGameRuleChangePublisher;
95 virtual ~GameRules() ;
103 MCAPI GameRules(::GameRules&& rhs);
105 MCAPI GameRules(::GameRules
const& rhs);
107 MCAPI
void _registerRules();
109 MCAPI ::std::unique_ptr<::GameRulesChangedPacket> _setGameRule(
111 ::std::variant<::cereal::NullType, bool, int, float> value,
112 ::GameRule::Type type,
114 bool* pValueValidated,
119 MCAPI ::std::unique_ptr<::GameRulesChangedPacket> createAllGameRulesPacket()
const;
123 MCAPI
bool getBool(
::GameRuleId ruleType,
bool defaultValue)
const;
125 MCAPI ::GameRules& operator=(::GameRules&& rhs);
127 MCAPI ::GameRules& operator=(::GameRules
const& rhs);
130 MCAPI
bool operator==(::GameRules
const& rhs)
const;
133 MCAPI
void setMarketplaceOverrides();
139 MCAPI static ::std::string
const& WORLD_POLICY_TAG_NAME();
147 MCAPI
void* $ctor(::GameRules&& rhs);
149 MCAPI
void* $ctor(::GameRules
const& rhs);