21 enum class Type : uchar {
32 ::ll::TypedStorage<1, 1, bool> mSuccess;
33 ::ll::TypedStorage<8, 32, ::std::string> mErrorDescription;
34 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mErrorParameters;
50 using TagDataNotFoundCallback = ::std::function<void(::GameRule&,
::BaseGameVersion const&)>;
52 using ValidateValueCallback = ::std::function<
55 using Value = ::std::variant<::cereal::NullType, bool, int, float>;
60 ::ll::TypedStorage<1, 1, bool> mShouldSave;
61 ::ll::TypedStorage<1, 1, ::GameRule::Type> mType;
62 ::ll::TypedStorage<4, 8, ::std::variant<::cereal::NullType, bool, int, float>> mValue;
63 ::ll::TypedStorage<8, 32, ::std::string> mName;
64 ::ll::TypedStorage<1, 1, bool> mAllowUseInCommand;
65 ::ll::TypedStorage<1, 1, bool> mAllowUseInScripting;
66 ::ll::TypedStorage<1, 1, bool> mIsDefaultSet;
67 ::ll::TypedStorage<1, 1, bool> mRequiresCheats;
68 ::ll::TypedStorage<1, 1, bool> mCanBeModifiedByPlayer;
69 ::ll::TypedStorage<8, 64, ::std::function<void(::GameRule&,
::BaseGameVersion const&)>> mTagNotFoundCallback;
75 mValidateValueCallback;
85 MCAPI GameRule(::GameRule&&);
87 MCAPI GameRule(::GameRule
const&);
89 MCAPI GameRule(::std::string
const& name,
bool canBeModifiedByPlayer);
92 ::std::variant<::cereal::NullType, bool, int, float>
const& v,
97 MCAPI ::GameRule& _setDefaultValue(
bool b);
99 MCAPI ::GameRule& _setDefaultValue(
int i);
101 MCAPI_C
bool getBool()
const;
103 MCAPI_C
int getInt()
const;
105 MCAPI ::std::string getLowercaseName()
const;
107 MCAPI ::GameRule& operator=(::GameRule&&);
109 MCAPI ::GameRule& operator=(::GameRule
const&);
111 MCAPI
bool operator==(::GameRule
const& other)
const;
113 MCAPI
void resetType(::GameRule::Type type);
115 MCAPI ::GameRule& setTagDataNotFoundCallback(::std::function<
void(::GameRule&,
::BaseGameVersion const&)> cb);
117 MCAPI ::GameRule& setValidateValueCallback(
128 MCAPI
void* $ctor(::GameRule&&);
130 MCAPI
void* $ctor(::GameRule
const&);
132 MCAPI
void* $ctor(::std::string
const& name,
bool canBeModifiedByPlayer);