7 #include "../Blocks/BlockHandler.h"
8 #include "../BlockEntities/BannerEntity.h"
9 #include "../Blocks/ChunkInterface.h"
34 if (!
TryPlaceBanner(a_Player, a_PlacePosition, a_ClickedBlockFace))
@ E_BLOCK_STANDING_BANNER
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
unsigned char Rotation(const BlockState Block)
void SetBaseColor(unsigned char a_Color)
void SetCustomName(const AString &a_CustomName)
BLOCKTYPE GetBlockType() const
double GetYaw(void) const
cWorld * GetWorld(void) const
bool PlaceBlock(Vector3i a_Position, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta)
Attempts to place the block in the world with a call to PlaceBlocks.
virtual bool CommitPlacement(cPlayer &a_Player, const cItem &a_HeldItem, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPosition) const override
Performs the actual placement of this placeable item.
static bool TryPlaceBanner(cPlayer &a_Player, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace)
virtual bool IsPlaceable(void) const override
Blocks simply get placed.
constexpr cItemHandler(int a_ItemType)
virtual bool DoWithBlockEntityAt(Vector3i a_Position, cBlockEntityCallback a_Callback) override
Calls the callback for the block entity at the specified coords; returns false if there's no block en...