3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/level/block/BlockSupportType.h"
7#include "mc/world/level/block/BlockType.h"
28class TrapDoorBlock :
public ::BlockType {
36 virtual ::AABB
const& getVisualShape(
::Block const& block,
::AABB& bufferAABB)
const ;
42 virtual bool canProvideSupport(
::Block const& block, uchar face, ::BlockSupportType)
const ;
44 virtual ::Block
const&
45 getPlacementBlock(
::Actor const& by,
::BlockPos const& pos, uchar face,
::Vec3 const& clickPos,
int itemValue)
const
53 virtual bool isInteractiveBlock()
const ;
57 virtual void _addHardCodedBlockComponents(
::Experiments const& experiments) ;
97 MCNAPI
void*
$ctor(::std::string
const& nameId,
int id,
::Material const& material);
138 MCAPI
static void** $vftable();
Definition BaseGameVersion.h:8
Definition BlockActor.h:30
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockRedstoneUpdateEvent.h:15
Definition BlockSource.h:72
Definition Experiments.h:14
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void setOpen(::BlockSource ®ion, ::BlockPos const &pos, bool shouldOpen) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
MCAPI void $_onHitByActivatingAttack(::BlockSource ®ion, ::BlockPos const &pos, ::Actor *) const
static MCAPI ::BaseGameVersion const & TRAP_DOOR_DOESNT_BREAK_FALLING_BLOCK_VERSION()
MCAPI::AABB const & $getVisualShape(::Block const &block, ::AABB &bufferAABB) const
MCAPI void * $ctor(::std::string const &nameId, int id, ::Material const &material)
MCAPI void $_addHardCodedBlockComponents(::Experiments const &experiments)
MCAPI void toggleOpen(::BlockSource ®ion, ::Actor *user, ::BlockPos const &pos) const
MCAPI::AABB const & $getOutline(::Block const &block, ::IConstBlockSource const &, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI bool $canProvideSupport(::Block const &block, uchar face, ::BlockSupportType) const
MCAPI bool $breaksFallingBlocks(::Block const &block, ::BaseGameVersion const version) const
MCAPI::ItemInstance $asItemInstance(::Block const &block, ::BlockActor const *) const
MCAPI TrapDoorBlock(::std::string const &nameId, int id, ::Material const &material)
MCAPI void $_useTrapDoor(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI bool $isInteractiveBlock() const
static MCAPI ::AABB const & _getShape(::Block const &block, ::AABB &bufferAABB, bool addBufferSpacing)
MCAPI void _onRedstoneUpdate(::BlockEvents::BlockRedstoneUpdateEvent &blockEvent) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
static MCAPI void _onSetupRedstoneComponent(::BlockSource ®ion, ::BlockPos const &pos)