3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockType.h"
26class ButtonBlock :
public ::BlockType {
30 ::ll::TypedStorage<1, 1, bool const> mSensitive;
40 virtual ::AABB getCollisionShape(
51 virtual ::AABB
const& getVisualShape(
::Block const& block,
::AABB& bufferAABB)
const ;
53 virtual ::AABB
const& getUIShape(
::Block const& block,
::AABB& bufferAABB)
const ;
55 virtual void addAABBs(
59 ::AABB const* intersectTestBox,
60 ::std::vector<::AABB>& inoutBoxes
70 virtual ::Block
const&
71 getPlacementBlock(
::Actor const& by,
::BlockPos const& pos, uchar face,
::Vec3 const& clickPos,
int itemValue)
const
79 virtual bool isInteractiveBlock()
const ;
81 virtual int getVariant(
::Block const& block)
const ;
83 virtual bool canSpawnOn(
::Actor*)
const ;
90 virtual void _addHardCodedBlockComponents(
::Experiments const&) ;
124 MCNAPI
void*
$ctor(::std::string
const& nameId,
int id,
::Material const& material,
bool sensitive);
148 ::AABB const* intersectTestBox,
149 ::std::vector<::AABB>& inoutBoxes
190 MCAPI
static void** $vftable();
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockSource.h:72
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition optional_ref.h:10