26class PistonBlockActor :
public ::BlockActor {
30 ::ll::TypedStorage<1, 1, bool> mSticky;
31 ::ll::TypedStorage<4, 4, float> mProgress;
32 ::ll::TypedStorage<4, 4, float> mLastProgress;
33 ::ll::TypedStorage<1, 1, bool> mWasPushedBackwardByANonStickyPiston;
34 ::ll::TypedStorage<1, 1, bool> mWasPulledForwardByAStickyPiston;
35 ::ll::TypedStorage<1, 1, ::PistonState> mOldState;
36 ::ll::TypedStorage<1, 1, ::PistonState> mState;
37 ::ll::TypedStorage<1, 1, ::PistonState> mNewState;
38 ::ll::TypedStorage<1, 1, bool> mVerifyArm;
39 ::ll::TypedStorage<1, 1, bool> mShouldVerifyArmType;
40 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mAttachedBlocks;
41 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::BlockPos>>> mFutureClientAttachedBlocks;
42 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mBreakBlocks;
62 virtual ::PistonBlockActor
const* getOwningPiston(
::BlockSource&)
const ;
64 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
68 virtual ~PistonBlockActor() ;
74 MCAPI PistonBlockActor(
::BlockPos const& pos,
bool isSticky);
76 MCAPI
bool _attachedBlockWalker(
79 uchar curBranchFacing,
80 uchar pistonMoveFacing
87 MCAPI
bool _handleSlimeConnections(
90 uchar curBranchFacing,
91 uchar pistonMoveFacing
94 MCAPI
bool _hasBlockAttached(
::BlockPos const& blockPos);
98 MCAPI
void _moveCollidedEntitiesHelper(
100 ::AABB const& insideBlockAABB,
114 MCAPI ::Block
const* getCorrectArmBlock()
const;
116 MCAPI
void moveEntityLastProgress(
::Actor& entity,
::Vec3 delta);
122 MCAPI
static void _spawnResourcesForBlockAndExtraBlock(
133 MCAPI
void* $ctor(
::BlockPos const& pos,
bool isSticky);
155 MCFOLD ::PistonBlockActor
const* $getOwningPiston(
::BlockSource&)
const;
157 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
Definition SaveContext.h:5
Definition ResourceDropsContext.h:17