|
| enum class | Type : uchar { Invalid = 0
, Bool = 1
, Int = 2
, Float = 3
} |
| |
|
using | Value = ::std::variant<::std::monostate, bool, int, float> |
| |
|
using | TagDataNotFoundCallback = ::std::function<void(::GameRule&, ::BaseGameVersion const&)> |
| |
| using | ValidateValueCallback |
| |
|
|
MCAPI | GameRule (::GameRule const &) |
| |
|
MCAPI | GameRule (::GameRule &&) |
| |
|
MCAPI | GameRule (::std::string const &name, bool canBeModifiedByPlayer) |
| |
|
MCAPI::GameRule & | _setDefaultValue (bool b) |
| |
|
MCAPI::GameRule & | _setDefaultValue (int i) |
| |
|
MCAPI::std::string | getLowercaseName () const |
| |
|
MCAPI::GameRule & | operator= (::GameRule &&) |
| |
|
MCAPI::GameRule & | operator= (::GameRule const &) |
| |
|
MCAPI bool | operator== (::GameRule const &other) const |
| |
|
MCAPI void | resetType (::GameRule::Type type) |
| |
|
MCAPI bool | setBool (bool value, bool *pValidated, ::GameRule::ValidationError *errorOutput) |
| |
|
MCAPI bool | setFloat (float value, bool *pValidated, ::GameRule::ValidationError *errorOutput) |
| |
|
MCAPI bool | setInt (int value, bool *pValidated, ::GameRule::ValidationError *errorOutput) |
| |
|
MCAPI::GameRule & | setTagDataNotFoundCallback (::std::function< void(::GameRule &, ::BaseGameVersion const &)> cb) |
| |
|
MCAPI::GameRule & | setValidateValueCallback (::std::function< bool(::std::variant<::std::monostate, bool, int, float > const &, ::GameRule::ValidationError *)> cb) |
| |
|
MCAPI void * | $ctor (::GameRule const &) |
| |
|
MCAPI void * | $ctor (::GameRule &&) |
| |
|
MCAPI void * | $ctor (::std::string const &name, bool canBeModifiedByPlayer) |
| |
|
MCAPI void | $dtor () |
| |
|
|
::ll::TypedStorage< 1, 1, bool > | mShouldSave |
| |
|
::ll::TypedStorage< 1, 1, ::GameRule::Type > | mType |
| |
|
::ll::TypedStorage< 4, 8, ::std::variant<::std::monostate, bool, int, float > > | mValue |
| |
|
::ll::TypedStorage< 8, 32, ::std::string > | mName |
| |
|
::ll::TypedStorage< 1, 1, bool > | mAllowUseInCommand |
| |
|
::ll::TypedStorage< 1, 1, bool > | mAllowUseInScripting |
| |
|
::ll::TypedStorage< 1, 1, bool > | mIsDefaultSet |
| |
|
::ll::TypedStorage< 1, 1, bool > | mRequiresCheats |
| |
|
::ll::TypedStorage< 1, 1, bool > | mCanBeModifiedByPlayer |
| |
|
::ll::TypedStorage< 8, 64, ::std::function< void(::GameRule &, ::BaseGameVersion const &)> > | mTagNotFoundCallback |
| |
|
::ll::TypedStorage< 8, 64, ::std::function< bool(::std::variant<::std::monostate, bool, int, float > const &, ::GameRule::ValidationError *)> > | mValidateValueCallback |
| |
◆ ValidateValueCallback
| using GameRule::ValidateValueCallback |
The documentation for this class was generated from the following file: