3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/ShapeType.h"
8#include "mc/world/level/block/BlockSupportType.h"
9#include "mc/world/level/block/BlockType.h"
31class ComposterBlock :
public ::BlockType {
34 enum class FillLevel :
int {
52 virtual bool isInteractiveBlock()
const ;
54 virtual bool hasComparatorSignal()
const ;
59 virtual ::HitResult clip(
65 ::ShapeType shapeType,
69 virtual bool addCollisionShapes(
73 ::AABB const* intersectTestBox,
74 ::std::vector<::AABB>& inoutBoxes,
78 virtual void addAABBs(
82 ::AABB const* intersectTestBox,
83 ::std::vector<::AABB>& inoutBoxes
86 virtual bool canProvideSupport(
::Block const&, uchar face, ::BlockSupportType type)
const ;
88 virtual int getVariant(
::Block const& block)
const ;
110 MCAPI static ::std::unordered_map<uint64, schar>
const& _getCompostableItems();
141 MCNAPI
void*
$ctor(::std::string
const& nameId,
int id);
164 ::ShapeType shapeType,
172 ::AABB const* intersectTestBox,
173 ::std::vector<::AABB>& inoutBoxes,
181 ::AABB const* intersectTestBox,
182 ::std::vector<::AABB>& inoutBoxes
Definition BaseGameVersion.h:8
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockSource.h:72
static MCAPI bool addItems(::Container &fromContainer, int slot, ::ItemStack &item, int amount, ::BlockSource ®ion, ::Block const &block, ::BlockPos const &pos)
MCAPI::HitResult $clip(::Block const &block, ::BlockSource const ®ion, ::BlockPos const &pos, ::Vec3 const &A, ::Vec3 const &B, ::ShapeType shapeType, ::optional_ref<::GetCollisionShapeInterface const > entity) const
static MCAPI ::BaseGameVersion const & COMPOSTER_DOESNT_BREAK_FALLING_BLOCK_VERSION()
MCAPI void * $ctor(::std::string const &nameId, int id)
MCAPI int $getVariant(::Block const &block) const
MCAPI bool $breaksFallingBlocks(::Block const &block, ::BaseGameVersion const version) const
static MCAPI void ** $vftable()
MCAPI void $onRemove(::BlockSource ®ion, ::BlockPos const &pos) const
MCAPI ComposterBlock(::std::string const &nameId, int id)
MCAPI bool $addCollisionShapes(::Block const &block, ::IConstBlockSource const ®ion, ::BlockPos const &pos, ::AABB const *intersectTestBox, ::std::vector<::AABB > &inoutBoxes, ::optional_ref<::GetCollisionShapeInterface const > entity) const
static MCAPI void empty(::BlockSource ®ion, ::Block const &composter, ::BlockPos const &pos)
MCAPI int $getComparatorSignal(::BlockSource ®ion, ::BlockPos const &pos, ::Block const &block, uchar dir) const
static MCAPI int addItems(::ItemStack const &item, int amount, ::BlockSource ®ion, ::Block const &block, ::BlockPos const &pos)
MCAPI void $addAABBs(::Block const &block, ::IConstBlockSource const ®ion, ::BlockPos const &pos, ::AABB const *intersectTestBox, ::std::vector<::AABB > &inoutBoxes) const
MCAPI void _emitBoneMeal(::Level &, ::BlockSource ®ion, ::BlockPos const &pos) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI void $onMove(::BlockSource ®ion, ::BlockPos const &from, ::BlockPos const &to) const
MCAPI bool $isInteractiveBlock() const
MCAPI bool $canProvideSupport(::Block const &, uchar face, ::BlockSupportType type) const
static MCAPI ::ItemStack extractItem(::BlockSource ®ion, ::Block const &composter, ::BlockPos const &pos)
MCAPI bool $hasComparatorSignal() const
Definition Container.h:36
Definition GetCollisionShapeInterface.h:13
Definition HitResult.h:18
Definition IConstBlockSource.h:25
Definition ItemStackBase.h:45
Definition ItemStack.h:26
Definition optional_ref.h:10