LeviLamina
Loading...
Searching...
No Matches
BlockLegacy::RearrangedStateCollection Struct Reference
+ Inheritance diagram for BlockLegacy::RearrangedStateCollection:

Public Types

using GetterType = ::std::function<::std::optional<int>(::BlockLegacy const&, int)>
 
using SetterType = ::std::function<::Block const*(::BlockLegacy const&, int, int)>
 

Public Member Functions

virtual ::std::optional< int > getState (::BlockLegacy const &blockLegacy, int blockData) const
 
virtual::Block const * setState (::BlockLegacy const &blockLegacy, int blockData, int stateData) const
 
MCAPI RearrangedStateCollection (::BlockState const &stateRef, ::std::function<::std::optional< int >(::BlockLegacy const &, int)> getter, ::std::function<::Block const *(::BlockLegacy const &, int, int)> setter)
 
MCAPI void * $ctor (::BlockState const &stateRef, ::std::function<::std::optional< int >(::BlockLegacy const &, int)> getter, ::std::function<::Block const *(::BlockLegacy const &, int, int)> setter)
 
MCAPI ::std::optional< int > $getState (::BlockLegacy const &blockLegacy, int blockData) const
 
MCAPI::Block const * $setState (::BlockLegacy const &blockLegacy, int blockData, int stateData) const
 

Static Public Member Functions

static MCAPI void add (::BlockLegacy &blockLegacy, ::BlockState const &stateRef, ::std::function<::std::optional< int >(::BlockLegacy const &, int)> getter, ::std::function<::Block const *(::BlockLegacy const &, int, int)> setter, ::SemVersion const &removedSupportVersion)
 
static MCAPI void ** $vftable ()
 
static MCAPI bool _checkVersioningRequirements (::SemVersion const &removedSupportVersion)
 

Public Attributes

::ll::TypedStorage< 8, 64, ::std::function<::std::optional< int >(::BlockLegacy const &, int)> > mGetter
 
::ll::TypedStorage< 8, 64, ::std::function<::Block const *(::BlockLegacy const &, int, int)> > mSetter
 
::ll::TypedStorage< 8, 8, ::std::reference_wrapper<::BlockState const > > mBlockState
 

Member Function Documentation

◆ getState()

virtual ::std::optional< int > BlockLegacy::RearrangedStateCollection::getState ( ::BlockLegacy const & blockLegacy,
int blockData ) const
virtual

◆ setState()

virtual::Block const * BlockLegacy::RearrangedStateCollection::setState ( ::BlockLegacy const & blockLegacy,
int blockData,
int stateData ) const
virtual

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