LeviLamina
Loading...
Searching...
No Matches
PistonBlockActor Class Reference
Inheritance diagram for PistonBlockActor:

Public Types

enum class  Property : uchar {
  Changed = 0 , Movable = 1 , ClientSideOnly = 2 , SaveCustomName = 3 ,
  CanRenderCustomName = 4 , Count = 5
}
using MapIdType = ::std::unordered_map<::std::string, ::BlockActorType>
using MapTypeId = ::std::unordered_map<::BlockActorType, ::std::string>
using Properties = ::Bedrock::EnumSet<::BlockActor::Property, 5>

Public Member Functions

virtual void load (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
virtual bool save (::CompoundTag &tag, ::SaveContext const &saveContext) const
virtual void tick (::BlockSource &region)
virtual void onRemoved (::BlockSource &region)
virtual::PistonBlockActor * getOwningPiston (::BlockSource &)
virtual::PistonBlockActor const * getOwningPiston (::BlockSource &) const
virtual ::std::unique_ptr<::BlockActorDataPacket_getUpdatePacket (::BlockSource &)
virtual void _onUpdatePacket (::CompoundTag const &data, ::BlockSource &region)
MCAPI PistonBlockActor (::BlockPos const &pos, bool isSticky)
MCAPI bool _attachedBlockWalker (::BlockSource &region, ::BlockPos const &curPos, uchar curBranchFacing, uchar pistonMoveFacing)
MCAPI bool _checkAttachedBlocks (::BlockSource &region)
MCAPI void _checkInceptionAchievement (::BlockActor &be, ::BlockSource &region, ::BlockPos const &facingDir)
MCAPI void _clearBlockInfront (::BlockSource &region, ::BlockPos const &blockPos, ::BlockPos const &blockBehindPos)
MCAPI bool _handleSlimeConnections (::BlockSource &region, ::BlockPos const &curPos, uchar curBranchFacing, uchar pistonMoveFacing)
MCAPI bool _hasBlockAttached (::BlockPos const &blockPos)
MCAPI void _moveCollidedEntities (::BlockSource &region)
MCAPI void _moveCollidedEntitiesHelper (::BlockSource &region, ::AABB const &insideBlockAABB, ::BlockPos const &facingDir, ::Actor *ignore, uint searchHeight)
MCAPI bool _shouldWaterlogAttachedBlock (::BlockSource &region, ::BlockPos const &attachedBlockPos, ::Block const &attachedBlock, ::Block const &attachedExtraBlock) const
MCAPI void _spawnBlocks (::BlockSource &region)
MCAPI void _spawnMovingBlock (::BlockSource &region, ::BlockPos const &blockPos)
MCAPI void _spawnMovingBlocks (::BlockSource &region)
MCAPI void _tryFixupStickyPistonArm (::BlockSource &region)
MCFOLD ::std::vector<::BlockPos > const & getAttachedBlocks () const
MCAPI::Block const * getCorrectArmBlock () const
MCAPI::BlockPos const & getFacingDir (::IConstBlockSource const &region) const
MCAPI float getProgress (float a) const
MCAPI bool isExpanded () const
MCAPI bool isExpanding () const
MCAPI bool isMoving () const
MCAPI bool isRetracted () const
MCAPI bool isRetracting () const
MCAPI void moveEntityLastProgress (::Actor &entity, ::Vec3 delta)
MCAPI void setShouldVerifyArmType (bool shouldVerify)
MCAPI void * $ctor (::BlockPos const &pos, bool isSticky)
MCAPI void $load (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI bool $save (::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void $tick (::BlockSource &region)
MCAPI void $onRemoved (::BlockSource &region)
MCFOLD::PistonBlockActor * $getOwningPiston (::BlockSource &)
MCFOLD::PistonBlockActor const * $getOwningPiston (::BlockSource &) const
MCAPI ::std::unique_ptr<::BlockActorDataPacket$_getUpdatePacket (::BlockSource &)
MCAPI void $_onUpdatePacket (::CompoundTag const &data, ::BlockSource &region)
LLAPI void refresh (optional_ref< class BlockSource > blockSource=std::nullopt)
virtual bool saveItemInstanceData (::CompoundTag &tag, ::SaveContext const &saveContext) const
virtual void saveBlockData (::CompoundTag &tag, ::BlockSource &region) const
virtual void loadBlockData (::CompoundTag const &, ::BlockSource &, ::DataLoadHelper &)
virtual void onCustomTagLoadDone (::BlockSource &region)
virtual bool isPermanentlyRendered () const
virtual bool isWithinRenderDistance (::Vec3 const &cameraPosition) const
virtual void onChanged (::BlockSource &region)
virtual void onPlace (::BlockSource &region)
virtual void onMove ()
virtual bool isPreserved (::BlockSource &region) const
virtual bool shouldPreserve (::BlockSource &region)
virtual void triggerEvent (int b0, int b1)
virtual void onNeighborChanged (::BlockSource &, ::BlockPos const &)
virtual float getShadowRadius (::BlockSource &region) const
virtual bool hasAlphaLayer () const
virtual::BlockActor * getCrackEntity (::BlockSource &region, ::BlockPos const &pos)
virtual::AABB getCollisionShape (::IConstBlockSource const &region) const
virtual void getDebugText (::std::vector<::std::string > &outputInfo, ::BlockPos const &debugPos, ::BlockSource const *region) const
virtual::Bedrock::Safety::RedactableString const & getCustomName () const
virtual::std::string getName () const
virtual void setFilteredNameTag (::std::string const &filteredName)
virtual void setCustomName (::Bedrock::Safety::RedactableString const &name)
virtual::std::string getImmersiveReaderText (::BlockSource &region)
virtual::Container * getContainer ()
virtual::Container const * getContainer () const
virtual void eraseLootTable ()
virtual void onChunkLoaded (::LevelChunk &lc)
virtual void onChunkUnloaded (::LevelChunk &lc)
virtual void onSubChunkLoaded (::LevelChunk &, short, bool)
virtual ::std::vector<::std::string > getUgcStrings (::CompoundTag const &tag) const
virtual ::std::vector<::std::string > getFilteredUgcStrings (::CompoundTag const &tag) const
virtual void setUgcStrings (::CompoundTag &tag, ::std::vector<::std::string > const &list) const
virtual void setFilteredUgcStrings (::CompoundTag &tag, ::std::vector<::std::string > const &list) const
virtual bool validateData (::CompoundTag const &tag) const
virtual void fixupOnLoad (::LevelChunk &lc)
virtual bool _playerCanUpdate (::Player const &player) const
MCAPI void _loadCustomNameFromUpdatePacket (::CompoundTag const &data)
MCAPI void _saveCustomNameToUpdatePacket (::CompoundTag &tag) const
MCFOLD::AABB const & getAABB () const
MCFOLD::BlockPos const & getPosition () const
MCFOLD ::std::unique_ptr<::BlockActorDataPacketgetServerUpdatePacket (::BlockSource &region)
MCFOLD::BlockActorType getType () const
MCAPI bool hasCustomName () const
MCAPI bool isChanged () const
MCAPI bool isCustomNameSaved () const
MCAPI bool isMovable () const
MCFOLD bool isType (::BlockActorType type) const
MCFOLD void moveTo (::BlockPos const &newPos)
MCAPI bool onUpdatePacket (::CompoundTag const &data, ::BlockSource &region, ::Player const *fromPlayer)
MCAPI void setCanRenderCustomName (bool value)
MCAPI void setChanged ()
MCAPI void setCustomNameSaved (bool saveCustomName)
MCAPI void setMovable (bool canMove)
MCAPI void * $ctor (::BlockActorType type, ::BlockPos const &pos, ::BlockActorRendererId rendererId)
MCAPI void $dtor ()
MCAPI bool $saveItemInstanceData (::CompoundTag &tag, ::SaveContext const &saveContext) const
MCFOLD void $saveBlockData (::CompoundTag &tag, ::BlockSource &region) const
MCFOLD void $loadBlockData (::CompoundTag const &, ::BlockSource &, ::DataLoadHelper &)
MCFOLD void $onCustomTagLoadDone (::BlockSource &region)
MCFOLD bool $isPermanentlyRendered () const
MCAPI bool $isWithinRenderDistance (::Vec3 const &cameraPosition) const
MCFOLD void $onChanged (::BlockSource &region)
MCFOLD void $onPlace (::BlockSource &region)
MCFOLD void $onMove ()
MCFOLD bool $isPreserved (::BlockSource &region) const
MCFOLD bool $shouldPreserve (::BlockSource &region)
MCFOLD void $triggerEvent (int b0, int b1)
MCFOLD void $onNeighborChanged (::BlockSource &, ::BlockPos const &)
MCFOLD float $getShadowRadius (::BlockSource &region) const
MCFOLD bool $hasAlphaLayer () const
MCFOLD::BlockActor * $getCrackEntity (::BlockSource &region, ::BlockPos const &pos)
MCAPI::AABB $getCollisionShape (::IConstBlockSource const &region) const
MCAPI void $getDebugText (::std::vector<::std::string > &outputInfo, ::BlockPos const &debugPos, ::BlockSource const *region) const
MCFOLD::Bedrock::Safety::RedactableString const & $getCustomName () const
MCFOLD::std::string $getName () const
MCAPI void $setFilteredNameTag (::std::string const &filteredName)
MCAPI void $setCustomName (::Bedrock::Safety::RedactableString const &name)
MCFOLD::std::string $getImmersiveReaderText (::BlockSource &region)
MCFOLD::Container * $getContainer ()
MCFOLD::Container const * $getContainer () const
MCFOLD void $eraseLootTable ()
MCFOLD void $onChunkLoaded (::LevelChunk &lc)
MCFOLD void $onChunkUnloaded (::LevelChunk &lc)
MCFOLD void $onSubChunkLoaded (::LevelChunk &, short, bool)
MCFOLD ::std::vector<::std::string > $getUgcStrings (::CompoundTag const &tag) const
MCFOLD ::std::vector<::std::string > $getFilteredUgcStrings (::CompoundTag const &tag) const
MCFOLD void $setUgcStrings (::CompoundTag &tag, ::std::vector<::std::string > const &list) const
MCFOLD void $setFilteredUgcStrings (::CompoundTag &tag, ::std::vector<::std::string > const &list) const
MCFOLD bool $validateData (::CompoundTag const &tag) const
MCFOLD void $fixupOnLoad (::LevelChunk &lc)
MCFOLD bool $_playerCanUpdate (::Player const &player) const

Static Public Member Functions

static MCAPI void ** $vftable ()
static LLNDAPI std::shared_ptr< BlockActorcreate (class CompoundTag const &nbt)
static LLNDAPI std::shared_ptr< BlockActorcreate (class CompoundTag const &nbt, class BlockPos const &pos)
static MCFOLD bool isType (::BlockActor &te, ::BlockActorType type)
static MCAPI ::std::unordered_map<::BlockActorType, ::std::string > const & _getClassIdMap ()
static MCAPI ::std::shared_ptr<::BlockActor > loadStatic (::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)

Public Attributes

::ll::TypedStorage< 1, 1, bool > mSticky
::ll::TypedStorage< 4, 4, float > mProgress
::ll::TypedStorage< 4, 4, float > mLastProgress
::ll::TypedStorage< 1, 1, bool > mWasPushedBackwardByANonStickyPiston
::ll::TypedStorage< 1, 1, bool > mWasPulledForwardByAStickyPiston
::ll::TypedStorage< 1, 1, ::PistonState > mOldState
::ll::TypedStorage< 1, 1, ::PistonState > mState
::ll::TypedStorage< 1, 1, ::PistonState > mNewState
::ll::TypedStorage< 1, 1, bool > mVerifyArm
::ll::TypedStorage< 1, 1, bool > mShouldVerifyArmType
::ll::TypedStorage< 8, 24, ::std::vector<::BlockPos > > mAttachedBlocks
::ll::TypedStorage< 8, 32, ::std::optional<::std::vector<::BlockPos > > > mFutureClientAttachedBlocks
::ll::TypedStorage< 8, 24, ::std::vector<::BlockPos > > mBreakBlocks
::ll::TypedStorage< 4, 4, int > mTickCount
::ll::TypedStorage< 4, 4, int > mRepairCost
::ll::TypedStorage< 4, 12, ::BlockPosmPosition
::ll::TypedStorage< 4, 24, ::AABBmBB
::ll::TypedStorage< 1, 1, ::BlockActorRendererId > mRendererId
::ll::TypedStorage< 1, 1, ::BlockActorType const > mType
::ll::TypedStorage< 1, 1, ::Bedrock::EnumSet<::BlockActor::Property, 5 > > mProperties
::ll::TypedStorage< 8, 72, ::Bedrock::Safety::RedactableStringmCustomName
::ll::TypedStorage< 8, 32, ::std::string > mFilteredCustomName
::ll::TypedStorage< 8, 24, ::ActorTerrainInterlockDatamTerrainInterlockData

Member Function Documentation

◆ load()

virtual void PistonBlockActor::load ( ::ILevel & level,
::CompoundTag const & tag,
::DataLoadHelper & dataLoadHelper )
virtual

Reimplemented from BlockActor.

◆ save()

virtual bool PistonBlockActor::save ( ::CompoundTag & tag,
::SaveContext const & saveContext ) const
virtual

Reimplemented from BlockActor.

◆ tick()

virtual void PistonBlockActor::tick ( ::BlockSource & region)
virtual

Reimplemented from BlockActor.

◆ onRemoved()

virtual void PistonBlockActor::onRemoved ( ::BlockSource & region)
virtual

Reimplemented from BlockActor.

◆ _onUpdatePacket()

virtual void PistonBlockActor::_onUpdatePacket ( ::CompoundTag const & data,
::BlockSource & region )
virtual

Reimplemented from BlockActor.

◆ $vftable()

MCAPI void ** PistonBlockActor::$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.

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