24class PistonBlock :
public ::ActorBlock {
27 enum class Type :
int {
35 ::ll::TypedStorage<4, 4, ::PistonBlock::Type> mType;
47 virtual ::Block
const&
48 getPlacementBlock(
::Actor const& by,
::BlockPos const& pos, uchar face,
::Vec3 const& clickPos,
int itemValue)
const
51 virtual bool canProvideSupport(
::Block const&, uchar, ::BlockSupportType)
const ;
63 virtual bool isValidAuxValue(
int value)
const ;
67 virtual int getVariant(
::Block const& block)
const ;
69 virtual uchar getMappedFace(uchar face,
::Block const& block)
const ;
73 virtual bool pushesUpFallingBlocks()
const ;
79 MCAPI PistonBlock(::std::string
const& nameId,
int id, ::PistonBlock::Type isSticky);
89 MCAPI static ::std::add_lvalue_reference_t<::BlockPos const[]> ARM_DIRECTION_OFFSETS();
95 MCAPI
void* $ctor(::std::string
const& nameId,
int id, ::PistonBlock::Type isSticky);
103 MCAPI ::Block
const& $getPlacementBlock(
111 MCFOLD
bool $canProvideSupport(
::Block const&, uchar, ::BlockSupportType)
const;
120 MCFOLD
bool $isValidAuxValue(
int value)
const;
124 MCFOLD
int $getVariant(
::Block const& block)
const;
126 MCAPI uchar $getMappedFace(uchar face,
::Block const& block)
const;
130 MCFOLD
bool $pushesUpFallingBlocks()
const;
138 MCAPI
static void** $vftable();