25class PistonBlockActor :
public ::BlockActor {
29 ::ll::TypedStorage<1, 1, bool> mSticky;
30 ::ll::TypedStorage<4, 4, float> mProgress;
31 ::ll::TypedStorage<4, 4, float> mLastProgress;
32 ::ll::TypedStorage<1, 1, bool> mWasPushedBackwardByANonStickyPiston;
33 ::ll::TypedStorage<1, 1, bool> mWasPulledForwardByAStickyPiston;
34 ::ll::TypedStorage<1, 1, ::PistonState> mOldState;
35 ::ll::TypedStorage<1, 1, ::PistonState> mState;
36 ::ll::TypedStorage<1, 1, ::PistonState> mNewState;
37 ::ll::TypedStorage<1, 1, bool> mVerifyArm;
38 ::ll::TypedStorage<1, 1, bool> mShouldVerifyArmType;
39 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mAttachedBlocks;
40 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::BlockPos>>> mFutureClientAttachedBlocks;
41 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mBreakBlocks;
61 virtual ::PistonBlockActor
const* getOwningPiston(
::BlockSource&)
const ;
63 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
71 MCAPI PistonBlockActor(
::BlockPos const& pos,
bool isSticky);
73 MCAPI
bool _attachedBlockWalker(
76 uchar curBranchFacing,
77 uchar pistonMoveFacing
86 MCAPI
bool _handleSlimeConnections(
89 uchar curBranchFacing,
90 uchar pistonMoveFacing
93 MCAPI
bool _hasBlockAttached(
::BlockPos const& blockPos);
97 MCAPI
void _moveCollidedEntitiesHelper(
99 ::AABB const& insideBlockAABB,
105 MCAPI
bool _shouldWaterlogAttachedBlock(
109 ::Block const& attachedExtraBlock
120 MCFOLD ::std::vector<::BlockPos>
const& getAttachedBlocks()
const;
122 MCAPI ::Block
const* getCorrectArmBlock()
const;
126 MCAPI
float getProgress(
float a)
const;
128 MCAPI
bool isExpanded()
const;
130 MCAPI
bool isExpanding()
const;
132 MCAPI
bool isMoving()
const;
134 MCAPI
bool isRetracted()
const;
136 MCAPI
bool isRetracting()
const;
139 MCFOLD
bool isSticky()
const;
142 MCAPI
void moveEntityLastProgress(
::Actor& entity,
::Vec3 delta);
144 MCAPI
void setShouldVerifyArmType(
bool shouldVerify);
150 MCAPI
void* $ctor(
::BlockPos const& pos,
bool isSticky);
166 MCFOLD ::PistonBlockActor
const* $getOwningPiston(
::BlockSource&)
const;
168 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
Definition SaveContext.h:5