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;
83 MCAPI GameRule(::GameRule
const&);
85 MCAPI GameRule(::std::string
const& name,
bool canBeModifiedByPlayer);
88 ::std::variant<::cereal::NullType, bool, int, float>
const& v,
93 MCFOLD
bool allowUseInCommand()
const;
95 MCFOLD
bool allowUseInScripting()
const;
97 MCFOLD
bool canBeModifiedByPlayer()
const;
100 MCAPI
bool compareValue(::std::variant<::cereal::NullType, bool, int, float>
const& v)
const;
103 MCAPI
bool getBool()
const;
105 MCAPI
float getFloat()
const;
107 MCAPI
int getInt()
const;
109 MCAPI ::std::string getLowercaseName()
const;
111 MCFOLD ::std::string
const& getName()
const;
113 MCFOLD ::GameRule::Type getType()
const;
115 MCFOLD ::std::variant<::cereal::NullType, bool, int, float>
const& getValue()
const;
117 MCAPI ::GameRule& operator=(::GameRule&&);
119 MCAPI ::GameRule& operator=(::GameRule
const&);
121 MCAPI
bool operator==(::GameRule
const& other)
const;
123 MCFOLD
bool requiresCheats()
const;
125 MCAPI
void resetType(::GameRule::Type type);
129 MCFOLD
void setCanBeModifiedByPlayer(
bool value);
135 MCAPI ::GameRule& setName(::std::string
const& name);
145 MCAPI
void* $ctor(::GameRule
const&);
147 MCAPI
void* $ctor(::std::string
const& name,
bool canBeModifiedByPlayer);