22 enum class Type : uchar {
33 ::ll::TypedStorage<1, 1, bool> mSuccess;
34 ::ll::TypedStorage<8, 32, ::std::string> mErrorDescription;
35 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mErrorParameters;
39 using CommandValueRedirectCallback = ::std::function<::std::variant<::cereal::NullType, bool, int, float>(
40 ::std::variant<::cereal::NullType, bool, int, float>
const&
45 using ValidateValueCallback = ::std::function<
48 using Value = ::std::variant<::cereal::NullType, bool, int, float>;
53 ::ll::TypedStorage<1, 1, bool> mShouldSave;
54 ::ll::TypedStorage<1, 1, ::GameRule::Type> mType;
55 ::ll::TypedStorage<4, 8, ::std::variant<::cereal::NullType, bool, int, float>> mValue;
56 ::ll::TypedStorage<8, 32, ::std::string> mName;
57 ::ll::TypedStorage<1, 1, bool> mAllowUseInCommand;
58 ::ll::TypedStorage<1, 1, bool> mAllowUseInScripting;
59 ::ll::TypedStorage<1, 1, bool> mIsDefaultSet;
60 ::ll::TypedStorage<1, 1, bool> mRequiresCheats;
61 ::ll::TypedStorage<1, 1, bool> mCanBeModifiedByPlayer;
69 mValidateValueCallback;
70 ::ll::TypedStorage<8, 16, ::std::map<::std::string, int>> mCommandEnumNames;
71 ::ll::TypedStorage<4, 4, int> mMinCommandVersion;
72 ::ll::TypedStorage<4, 4, int> mMaxCommandVersion;
76 ::std::function<::std::variant<::cereal::NullType, bool, int, float>(
77 ::std::variant<::cereal::NullType, bool, int, float>
const&
79 mCommandValueRedirectConverter;
80 ::ll::TypedStorage<4, 8, ::std::optional<int>> mCommandValueRedirectTarget;
88 MCAPI GameRule(::GameRule&&);
90 MCAPI GameRule(::GameRule
const&);
92 MCAPI GameRule(::std::string
const& name,
bool canBeModifiedByPlayer);
95 ::std::string
const& name,
100 bool canBeModifiedByPlayer
104 ::std::variant<::cereal::NullType, bool, int, float>
const& v,
110 MCAPI
bool compareValue(::std::variant<::cereal::NullType, bool, int, float>
const& v)
const;
112 MCAPI
bool getBool()
const;
114 MCAPI
int getInt()
const;
117 MCAPI ::GameRule& operator=(::GameRule&&);
119 MCAPI ::GameRule& operator=(::GameRule
const&);
121 MCAPI
bool operator==(::GameRule
const& other)
const;
131 MCAPI
void* $ctor(::GameRule&&);
133 MCAPI
void* $ctor(::GameRule
const&);
135 MCAPI
void* $ctor(::std::string
const& name,
bool canBeModifiedByPlayer);
138 ::std::string
const& name,
143 bool canBeModifiedByPlayer