Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ConsumerComponent Class Reference
Inheritance diagram for ConsumerComponent:

Public Member Functions

virtual bool evaluate (::CircuitSystem &system, ::BlockPos const &pos)
virtual bool allowConnection (::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, bool &bDirectlyPowered)
virtual bool addSource (::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
virtual bool canConsumerPower () const
virtual bool isSecondaryPowered () const
virtual bool needsUpdate ()
virtual::CircuitComponentType getCircuitComponentType () const
MCAPI void $dtor ()
MCAPI bool $evaluate (::CircuitSystem &system, ::BlockPos const &pos)
MCAPI bool $allowConnection (::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, bool &bDirectlyPowered)
MCAPI bool $addSource (::CircuitSceneGraph &graph, ::CircuitTrackingInfo const &info, int &dampening, bool &bDirectlyPowered)
MCAPI bool $canConsumerPower () const
MCAPI bool $isSecondaryPowered () const
MCAPI bool $needsUpdate ()
MCAPI::CircuitComponentType $getCircuitComponentType () const
virtual int getStrength () const
virtual int getDirection () const
virtual void setOldStrength (short strength)
virtual void setStrength (int strength)
virtual void setDirection (uchar direction)
virtual void setConsumePowerAnyDirection (bool canConsumePowerAnyDirection)
virtual bool canConsumePowerAnyDirection () const
virtual bool canStopPower () const
virtual void setStopPower (bool bPower)
virtual void removeSource (::BlockPos const &posSource, ::BaseCircuitComponent const *pComponent)
virtual void checkLock (::CircuitSystem &system, ::BlockPos const &pos)
virtual void cacheValues (::CircuitSystem &system, ::BlockPos const &pos)
virtual void updateDependencies (::CircuitSceneGraph &system, ::BlockPos const &pos)
virtual::RedstoneLogicExecutionFlags getLogicExecutionFlags () const
virtual bool allowIndirect () const
virtual bool isHalfPulse () const
virtual bool hasSource (::BaseCircuitComponent const &source) const
virtual bool hasChildrenSource () const
virtual void removeFromAnySourceList (::BaseCircuitComponent const *component)
virtual::CircuitComponentType getCircuitComponentGroupType () const
MCAPI void addSourceItem (::CircuitComponentList::Item const &item)
MCAPI bool trackPowerSource (::CircuitTrackingInfo const &info, int dampening, bool directlyPowered, int data, bool isDirectional)
MCAPI int $getStrength () const
MCAPI int $getDirection () const
MCAPI void $setOldStrength (short strength)
MCAPI void $setStrength (int strength)
MCAPI void $setDirection (uchar direction)
MCAPI void $setConsumePowerAnyDirection (bool canConsumePowerAnyDirection)
MCAPI bool $canConsumePowerAnyDirection () const
MCAPI bool $canStopPower () const
MCAPI void $setStopPower (bool bPower)
MCAPI void $removeSource (::BlockPos const &posSource, ::BaseCircuitComponent const *pComponent)
MCAPI void $checkLock (::CircuitSystem &system, ::BlockPos const &pos)
MCAPI void $cacheValues (::CircuitSystem &system, ::BlockPos const &pos)
MCAPI void $updateDependencies (::CircuitSceneGraph &system, ::BlockPos const &pos)
MCAPI::RedstoneLogicExecutionFlags $getLogicExecutionFlags () const
MCAPI bool $allowIndirect () const
MCAPI bool $isHalfPulse () const
MCAPI bool $hasSource (::BaseCircuitComponent const &source) const
MCAPI bool $hasChildrenSource () const
MCAPI void $removeFromAnySourceList (::BaseCircuitComponent const *component)
MCAPI::CircuitComponentType $getCircuitComponentGroupType () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ConsumerComponent * > > mMultiBlockPartConsumers
::ll::TypedStorage< 1, 1, bool > mSecondaryPowered
::ll::TypedStorage< 1, 1, bool > mPropagatePower
::ll::TypedStorage< 1, 1, bool > mPromotedToProducer
::ll::TypedStorage< 1, 1, bool > mAcceptHalfPulse
::ll::TypedStorage< 1, 1, bool > mAcceptSameDirection
::ll::TypedStorage< 1, 1, bool > mUpdatedByOtherConsumer
::ll::TypedStorage< 8, 8, ::CircuitComponentType const > mCircuitComponentType
::ll::TypedStorage< 8, 24, ::CircuitComponentList > mSources
::ll::TypedStorage< 8, 16, ::Core::RefCountedSet<::BaseCircuitComponent * > > mDestinations
::ll::TypedStorage< 1, 1, bool > mIgnoreFirstUpdate
::ll::TypedStorage< 1, 1, bool > mIsFirstTime
::ll::TypedStorage< 1, 1, bool > mNeedsUpdate
::ll::TypedStorage< 4, 12, ::BlockPos > mPos
::ll::TypedStorage< 4, 12, ::BlockPos > mChunkPosition
::ll::TypedStorage< 1, 1, bool > mShouldEvaluate
::ll::TypedStorage< 2, 2, short > mStrength
::ll::TypedStorage< 2, 2, short > mOldStrength
::ll::TypedStorage< 1, 1, uchar > mDirection
::ll::TypedStorage< 1, 1, bool > mAllowPowerUp
::ll::TypedStorage< 1, 1, bool > mAllowPowerDown
::ll::TypedStorage< 1, 1, bool > mRemoved
::ll::TypedStorage< 1, 1, bool > mConsumePowerAnyDirection

Member Function Documentation

◆ evaluate()

virtual bool ConsumerComponent::evaluate ( ::CircuitSystem & system,
::BlockPos const & pos )
virtual

Reimplemented from BaseCircuitComponent.

◆ allowConnection()

virtual bool ConsumerComponent::allowConnection ( ::CircuitSceneGraph & graph,
::CircuitTrackingInfo const & info,
bool & bDirectlyPowered )
virtual

Reimplemented from BaseCircuitComponent.

◆ addSource()

virtual bool ConsumerComponent::addSource ( ::CircuitSceneGraph & graph,
::CircuitTrackingInfo const & info,
int & dampening,
bool & bDirectlyPowered )
virtual

Reimplemented from BaseCircuitComponent.

◆ canConsumerPower()

virtual bool ConsumerComponent::canConsumerPower ( ) const
virtual

Reimplemented from BaseCircuitComponent.

◆ isSecondaryPowered()

virtual bool ConsumerComponent::isSecondaryPowered ( ) const
virtual

Reimplemented from BaseCircuitComponent.

◆ needsUpdate()

virtual bool ConsumerComponent::needsUpdate ( )
virtual

Reimplemented from BaseCircuitComponent.

◆ $dtor()

MCAPI void ConsumerComponent::$dtor ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $allowConnection()

MCAPI bool ConsumerComponent::$allowConnection ( ::CircuitSceneGraph & graph,
::CircuitTrackingInfo const & info,
bool & bDirectlyPowered )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $addSource()

MCAPI bool ConsumerComponent::$addSource ( ::CircuitSceneGraph & graph,
::CircuitTrackingInfo const & info,
int & dampening,
bool & bDirectlyPowered )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canConsumerPower()

MCAPI bool ConsumerComponent::$canConsumerPower ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isSecondaryPowered()

MCAPI bool ConsumerComponent::$isSecondaryPowered ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $needsUpdate()

MCAPI bool ConsumerComponent::$needsUpdate ( )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getCircuitComponentType()

MCAPI::CircuitComponentType ConsumerComponent::$getCircuitComponentType ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** ConsumerComponent::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addSourceItem()

MCAPI void BaseCircuitComponent::addSourceItem ( ::CircuitComponentList::Item const & item)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ trackPowerSource()

MCAPI bool BaseCircuitComponent::trackPowerSource ( ::CircuitTrackingInfo const & info,
int dampening,
bool directlyPowered,
int data,
bool isDirectional )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getStrength()

MCAPI int BaseCircuitComponent::$getStrength ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getDirection()

MCAPI int BaseCircuitComponent::$getDirection ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setOldStrength()

MCAPI void BaseCircuitComponent::$setOldStrength ( short strength)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setStrength()

MCAPI void BaseCircuitComponent::$setStrength ( int strength)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setDirection()

MCAPI void BaseCircuitComponent::$setDirection ( uchar direction)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setConsumePowerAnyDirection()

MCAPI void BaseCircuitComponent::$setConsumePowerAnyDirection ( bool canConsumePowerAnyDirection)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canConsumePowerAnyDirection()

MCAPI bool BaseCircuitComponent::$canConsumePowerAnyDirection ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $canStopPower()

MCAPI bool BaseCircuitComponent::$canStopPower ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $setStopPower()

MCAPI void BaseCircuitComponent::$setStopPower ( bool bPower)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $removeSource()

MCAPI void BaseCircuitComponent::$removeSource ( ::BlockPos const & posSource,
::BaseCircuitComponent const * pComponent )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $checkLock()

MCAPI void BaseCircuitComponent::$checkLock ( ::CircuitSystem & system,
::BlockPos const & pos )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $cacheValues()

MCAPI void BaseCircuitComponent::$cacheValues ( ::CircuitSystem & system,
::BlockPos const & pos )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $updateDependencies()

MCAPI void BaseCircuitComponent::$updateDependencies ( ::CircuitSceneGraph & system,
::BlockPos const & pos )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getLogicExecutionFlags()

MCAPI::RedstoneLogicExecutionFlags BaseCircuitComponent::$getLogicExecutionFlags ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $allowIndirect()

MCAPI bool BaseCircuitComponent::$allowIndirect ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $isHalfPulse()

MCAPI bool BaseCircuitComponent::$isHalfPulse ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $hasSource()

MCAPI bool BaseCircuitComponent::$hasSource ( ::BaseCircuitComponent const & source) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $hasChildrenSource()

MCAPI bool BaseCircuitComponent::$hasChildrenSource ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $removeFromAnySourceList()

MCAPI void BaseCircuitComponent::$removeFromAnySourceList ( ::BaseCircuitComponent const * component)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getCircuitComponentGroupType()

MCAPI::CircuitComponentType BaseCircuitComponent::$getCircuitComponentGroupType ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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