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

Classes

class  ValidationError

Public Types

enum class  Type : uchar { Invalid = 0 , Bool = 1 , Int = 2 , Float = 3 }
using CommandValueRedirectCallback
using TagDataNotFoundCallback = ::std::function<void(::GameRule&, ::BaseGameVersion const&, ::CompoundTag const&)>
using ValidateValueCallback
using Value = ::std::variant<::cereal::NullType, bool, int, float>

Public Member Functions

MCAPI GameRule (::GameRule &&)
MCAPI GameRule (::GameRule const &)
MCAPI GameRule (::std::string const &name, bool canBeModifiedByPlayer)
MCAPI GameRule (::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)
MCAPI::GameRule & operator= (::GameRule &&)
MCAPI::GameRule & operator= (::GameRule const &)
MCAPI bool operator== (::GameRule const &other) const
MCAPI::GameRule & setName (::std::string const &name)
MCAPI void * $ctor ()
MCAPI void * $ctor (::GameRule &&)
MCAPI void * $ctor (::GameRule const &)
MCAPI void * $ctor (::std::string const &name, bool canBeModifiedByPlayer)
MCAPI void * $ctor (::std::string const &name, bool value, bool shouldSave, bool allowInCommand, bool requiresCheats, bool canBeModifiedByPlayer)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 1, 1, bool > mShouldSave
::ll::TypedStorage< 1, 1, ::GameRule::Type > mType
::ll::TypedStorage< 4, 8, ::std::variant<::cereal::NullType, 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 &, ::CompoundTag const &)> > mTagNotFoundCallback
::ll::TypedStorage< 8, 64, ::std::function< bool(::std::variant<::cereal::NullType, bool, int, float > const &, ::GameRule::ValidationError *)> > mValidateValueCallback
::ll::TypedStorage< 8, 16, ::std::map<::std::string, int > > mCommandEnumNames
::ll::TypedStorage< 4, 4, int > mMinCommandVersion
::ll::TypedStorage< 4, 4, int > mMaxCommandVersion
::ll::TypedStorage< 8, 64, ::std::function<::std::variant<::cereal::NullType, bool, int, float >(::std::variant<::cereal::NullType, bool, int, float > const &)> > mCommandValueRedirectConverter
::ll::TypedStorage< 4, 8, ::std::optional< int > > mCommandValueRedirectTarget

Member Typedef Documentation

◆ CommandValueRedirectCallback

using GameRule::CommandValueRedirectCallback
Initial value:
::std::function<::std::variant<::cereal::NullType, bool, int, float>(
::std::variant<::cereal::NullType, bool, int, float> const&
)>

◆ ValidateValueCallback

using GameRule::ValidateValueCallback
Initial value:
::std::function<
bool(::std::variant<::cereal::NullType, bool, int, float> const&, ::GameRule::ValidationError*)>
Definition GameRule.h:29

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