3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/Direction.h"
7#include "mc/world/level/block/ActorBlockBase.h"
8#include "mc/world/level/block/BlockSupportType.h"
9#include "mc/world/level/block/BlockType.h"
25class PistonBlock :
public ::ActorBlock {
28 enum class Type :
int {
36 ::ll::TypedStorage<4, 4, ::PistonBlock::Type> mType;
48 virtual bool requiresLegacyRedstoneSetup()
const ;
50 virtual ::Block
const&
51 getPlacementBlock(
::Actor const& by,
::BlockPos const& pos, uchar face,
::Vec3 const& clickPos,
int itemValue)
const
54 virtual bool canProvideSupport(
::Block const&, uchar, ::BlockSupportType)
const ;
66 virtual bool isValidAuxValue(
int value)
const ;
70 virtual int getVariant(
::Block const& block)
const ;
72 virtual uchar getMappedFace(uchar face,
::Block const& block)
const ;
76 virtual bool pushesUpFallingBlocks()
const ;
82 MCNAPI
PistonBlock(::std::string
const& nameId,
int id, ::PistonBlock::Type isSticky);
94 MCAPI static ::std::add_lvalue_reference_t<::BlockPos const[]> ARM_DIRECTION_OFFSETS();
100 MCNAPI
void*
$ctor(::std::string
const& nameId,
int id, ::PistonBlock::Type isSticky);
Definition BaseGameVersion.h:8
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockStateChangeEvent.h:17
Definition BlockSource.h:72
Definition IConstBlockSource.h:25
MCAPI void $neighborChanged(::BlockSource ®ion, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI bool $breaksFallingBlocks(::Block const &block, ::BaseGameVersion const version) const
MCAPI void $setupRedstoneComponent(::BlockSource ®ion, ::BlockPos const &pos) const
MCAPI bool $getSecondPart(::IConstBlockSource const ®ion, ::BlockPos const &pos, ::BlockPos &out) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI PistonBlock(::std::string const &nameId, int id, ::PistonBlock::Type isSticky)
MCAPI bool $isValidAuxValue(int value) const
MCAPI void * $ctor(::std::string const &nameId, int id, ::PistonBlock::Type isSticky)
MCAPI void _onStateChange(::BlockEvents::BlockStateChangeEvent const &eventData) const
MCAPI bool $pushesUpFallingBlocks() const
MCAPI bool $canSurvive(::BlockSource ®ion, ::BlockPos const &pos) const
MCAPI bool $shouldConnectToRedstone(::BlockSource ®ion, ::BlockPos const &pos, ::Direction::Type direction) const
MCAPI uchar $getMappedFace(uchar face, ::Block const &block) const
MCAPI bool $canProvideSupport(::Block const &, uchar, ::BlockSupportType) const
static MCAPI void ** $vftable()
MCAPI bool $requiresLegacyRedstoneSetup() const
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI int $getVariant(::Block const &block) const