File ChestBlock.hpp

class ChestBlock : public ActorBlock

Public Types

enum class ChestType : int

Values:

enumerator Default
enumerator Trapped
enumerator Other

Public Functions

ChestBlock(const std::string &nameId, short id, ChestType type, MaterialType materialType)
virtual ~ChestBlock() = default
virtual bool canProvideSupport(const Block &block, unsigned char face, BlockSupportType type) const override
virtual bool isContainerBlock() const override
virtual bool isSignalSource() const override
virtual bool shouldConnectToRedstone(BlockSource&, const BlockPos&, Direction::Type) const override
virtual bool dispense(BlockSource &region, Container &container, int slot, const Vec3 &pos, unsigned char face) const override
virtual void onMove(BlockSource &region, const BlockPos &from, const BlockPos &to) const override
virtual bool detachesOnPistonMove(BlockSource&, BlockPos const&) const override
virtual void setupRedstoneComponent(BlockSource &region, const BlockPos &pos) const override
virtual bool breaksFallingBlocks(const Block &block, BaseGameVersion version) const override
virtual bool getSecondPart(const IConstBlockSource&, const BlockPos&, BlockPos&) const override
virtual bool hasComparatorSignal() const override
virtual int getComparatorSignal(BlockSource &region, const BlockPos &pos, const Block &block, unsigned char dir) const override
virtual unsigned char getMappedFace(unsigned char face, const Block &block) const override
virtual BlockLegacy &init() override
virtual void onRemove(BlockSource &region, const BlockPos &pos) const override
virtual void onPlace(BlockSource &region, const BlockPos &pos) const override
virtual bool isInteractive() const override
virtual bool use(Player &player, const BlockPos &pos, unsigned char face) const override

Public Members

ChestType mChestType