38 return a_ChunkInterface.
UseBlockEntity(&a_Player, a_BlockPos.
x, a_BlockPos.
y, a_BlockPos.
z);
56 using cBlockEntityHandler::cBlockEntityHandler;
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
Wrapper for blocks that have a cBlockEntity descendant attached to them and can be "used" by the play...
virtual bool OnUse(cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace, const Vector3i a_CursorPos) const override
Called when the user right clicks the block and the block is useable.
virtual bool IsUseable() const override
Called to check whether this block supports a rclk action.
~cBlockEntityHandler()=default
constexpr cBlockHandler(BLOCKTYPE a_BlockType)
bool UseBlockEntity(cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ)
Use block entity on coordinate.