6 #include "../ClientHandle.h"
26 switch (a_NeighborBlockFace)
72 a_Rotation += 180 + (180.f / 16);
78 a_Rotation = (a_Rotation / 360) * 16;
80 return static_cast<NIBBLETYPE>(a_Rotation) % 16;
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.
void SendEditSign(Vector3i a_BlockPos)
double GetYaw(void) const
cClientHandle * GetClientHandle(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.
constexpr cItemHandler(int a_ItemType)
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 NIBBLETYPE RotationToMetaData(double a_Rotation)
Converts the (player) rotation to placed-signpost block meta.
static NIBBLETYPE BlockFaceToMetaData(eBlockFace a_NeighborBlockFace)
Converts the block face of the neighbor to which the wallsign is attached to the wallsign block's met...
virtual bool IsPlaceable(void) const override
Blocks simply get placed.