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;
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 MCNAPI
bool compareValue(::std::variant<::cereal::NullType, bool, int, float>
const& v)
const;
112 MCNAPI
bool getBool()
const;
114 MCNAPI
int getInt()
const;
123 MCNAPI ::GameRule&
setName(::std::string
const& name);
137 MCAPI
void*
$ctor(::std::string
const& name,
bool canBeModifiedByPlayer);
140 ::std::string
const& name,
145 bool canBeModifiedByPlayer
MCAPI void * $ctor(::std::string const &name, bool value, bool shouldSave, bool allowInCommand, bool requiresCheats, bool canBeModifiedByPlayer)
MCAPI bool _set(::std::variant<::cereal::NullType, bool, int, float > const &v, bool *pValidated, ::GameRule::ValidationError *errorOutput)