|
LeviLamina
|
Public Types | |
| enum class | GameRulesIndex : int { InvalidGameRule = -1 , CommandBlockOutput = 0 , DoDaylightCycle = 1 , DoEntityDrops = 2 , DoFireTick = 3 , RecipesUnlock = 4 , DoLimitedCrafting = 5 , DoMobLoot = 6 , DoMobSpawning = 7 , DoTileDrops = 8 , DoWeatherCycle = 9 , DrowningDamage = 10 , FallDamage = 11 , FireDamage = 12 , KeepInventory = 13 , MobGriefing = 14 , Pvp = 15 , ShowCoordinates = 16 , PlayerWaypoints = 17 , LocatorBarDeprecated = 18 , ShowDaysPlayed = 19 , DoNaturalRegeneration = 20 , DoTntExplode = 21 , SendCommandFeedback = 22 , MaxCommandChainLength = 23 , DoInsomnia = 24 , CommandBlocksEnabled = 25 , RandomTickSpeed = 26 , DoImmediateRespawn = 27 , ShowDeathMessages = 28 , FunctionCommandLimit = 29 , PlayerSpawnRadius = 30 , ShowTags = 31 , FreezeDamage = 32 , RespawnBlocksExplode = 33 , ShowBorderEffect = 34 , ShowRecipeMessages = 35 , PlayerSleepingPercentage = 36 , ProjectilesCanBreakBlocks = 37 , TntExplosionDropDecay = 38 , VanillaGameRuleCount = 39 , GlobalMute = 39 , AllowDestructiveObjects = 40 , AllowMobs = 41 , CodeBuilder = 42 , EduCloudSave = 43 , EduGameRuleCount = 44 , GameRuleCount = 44 } |
| using | GameRuleMap = ::std::vector<::GameRule> |
| using | WorldPolicyMap = ::std::map<::HashedString, ::GameRule> |
Public Member Functions | |
| MCAPI | GameRules (::GameRules &&rhs) |
| MCAPI | GameRules (::GameRules const &rhs) |
| MCAPI void | _registerRules () |
| MCAPI ::std::unique_ptr<::GameRulesChangedPacket > | _setGameRule (::GameRule *gameRule, ::std::variant<::cereal::NullType, bool, int, float > value, ::GameRule::Type type, bool returnPacket, bool *pValueValidated, bool *pValueChanged, ::GameRule::ValidationError *errorOutput) |
| MCAPI ::std::unique_ptr<::GameRulesChangedPacket > | createAllGameRulesPacket () const |
| MCAPI void | deserializeRules (::GameRulesChangedPacketData const &ruleData) |
| MCAPI bool | getBool (::GameRuleId ruleType, bool defaultValue) const |
| MCAPI::GameRules & | operator= (::GameRules &&rhs) |
| MCAPI::GameRules & | operator= (::GameRules const &rhs) |
| MCAPI void | setMarketplaceOverrides () |
| MCAPI void * | $ctor () |
| MCAPI void * | $ctor (::GameRules &&rhs) |
| MCAPI void * | $ctor (::GameRules const &rhs) |
| MCAPI void | $dtor () |
Static Public Member Functions | |
| static MCAPI ::std::string const & | WORLD_POLICY_TAG_NAME () |
| static MCAPI void ** | $vftable () |
Public Attributes | |
| ::ll::TypedStorage< 8, 24, ::std::vector<::GameRule > > | mGameRules |
| ::ll::TypedStorage< 8, 16, ::std::map<::HashedString, ::GameRule > > | mWorldPolicies |
| ::ll::TypedStorage< 8, 128, ::Bedrock::PubSub::Publisher< void(::GameRules const &, ::GameRuleId const &), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0 > > | mGameRuleChangePublisher |
| ::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > | mControlBlock |
|
static |