6 #include "../EffectID.h"
12 public cClearMetaOnDrop<cYawRotator<cBlockHandler, 0x03, 0x01, 0x02, 0x00, 0x03, false>>
84 ASSERT(!
"Unhandled block meta!");
103 ASSERT(!
"Unhandled blocktype in trapdoor handler!");
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.
@ SFX_RANDOM_FENCE_GATE_OPEN
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
static eBlockFace BlockMetaDataToBlockFace(NIBBLETYPE a_Meta)
virtual bool IsUseable(void) const override
virtual void OnCancelRightClick(cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace) const override
virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
virtual void BroadcastSoundParticleEffect(const EffectID a_EffectID, Vector3i a_SrcPos, int a_Data, const cClientHandle *a_Exclude=nullptr)=0
void SetBlockMeta(Vector3i a_BlockPos, NIBBLETYPE a_MetaData)
Sets the meta for the specified block, while keeping the blocktype.
NIBBLETYPE GetBlockMeta(Vector3i a_Pos)
Mixin to clear the block's meta value when converting to a pickup.
cMetaRotator< Base, BitMask, North, East, South, West, AssertIfNotMatched > Super
virtual cBroadcastInterface & GetBroadcastManager()=0
virtual void SendBlockTo(int a_BlockX, int a_BlockY, int a_BlockZ, const cPlayer &a_Player)=0
Sends the block on those coords to the player.
cClientHandle * GetClientHandle(void) const