LeviLamina
Loading...
Searching...
No Matches
GameRule Class Reference

Classes

class  ValidationError
 
union  Value
 

Public Types

enum class  Type : uchar { Invalid = 0 , Bool = 1 , Int = 2 , Float = 3 }
 
using TagDataNotFoundCallback = ::std::function<void(::GameRule&, ::BaseGameVersion const&)>
 
using ValidateValueCallback = ::std::function<bool(::GameRule::Value const&, ::GameRule::ValidationError*)>
 

Public Member Functions

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 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(::GameRule::Value 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 ()
 

Public Attributes

::ll::TypedStorage< 1, 1, bool > mShouldSave
 
::ll::TypedStorage< 1, 1, ::GameRule::Type > mType
 
::ll::TypedStorage< 4, 4, ::GameRule::ValuemValue
 
::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(::GameRule::Value const &, ::GameRule::ValidationError *)> > mValidateValueCallback
 

The documentation for this class was generated from the following file: