#include <BlockDoor.h>
|
virtual bool | CanBeAt (const cChunk &a_Chunk, const Vector3i a_Position, const NIBBLETYPE a_Meta) const override |
|
virtual cItems | ConvertToPickups (const NIBBLETYPE a_BlockMeta, const cItem *const a_Tool) const override |
|
virtual ColourID | GetMapBaseColourID (NIBBLETYPE a_Meta) const override |
|
virtual cBoundingBox | GetPlacementCollisionBox (BLOCKTYPE a_XM, BLOCKTYPE a_XP, BLOCKTYPE a_YM, BLOCKTYPE a_YP, BLOCKTYPE a_ZM, BLOCKTYPE a_ZP) const override |
|
virtual bool | IsUseable (void) const override |
|
virtual NIBBLETYPE | MetaMirrorXY (NIBBLETYPE a_Meta) const override |
|
virtual NIBBLETYPE | MetaMirrorYZ (NIBBLETYPE a_Meta) const override |
|
virtual NIBBLETYPE | MetaRotateCCW (NIBBLETYPE a_Meta) const override |
|
virtual NIBBLETYPE | MetaRotateCW (NIBBLETYPE a_Meta) const override |
|
virtual void | OnBroken (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, Vector3i a_BlockPos, BLOCKTYPE a_OldBlockType, NIBBLETYPE a_OldBlockMeta, const cEntity *a_Digger) const override |
|
virtual void | OnCancelRightClick (cChunkInterface &a_ChunkInterface, cWorldInterface &a_WorldInterface, cPlayer &a_Player, const Vector3i a_BlockPos, eBlockFace a_BlockFace) const override |
|
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 |
|
Definition at line 16 of file BlockDoor.h.
◆ Super
◆ CanBeAt()
virtual bool cBlockDoorHandler::CanBeAt |
( |
const cChunk & |
a_Chunk, |
|
|
const Vector3i |
a_Position, |
|
|
const NIBBLETYPE |
a_Meta |
|
) |
| const |
|
inlineoverrideprivatevirtual |
◆ CanBeOn()
Returns true if door can be placed on the specified block type.
Definition at line 26 of file BlockDoor.h.
◆ ChangeDoor()
Changes the door at the specified coords from open to close or vice versa.
Definition at line 245 of file BlockDoor.h.
◆ ConvertToPickups()
virtual cItems cBlockDoorHandler::ConvertToPickups |
( |
const NIBBLETYPE |
a_BlockMeta, |
|
|
const cItem *const |
a_Tool |
|
) |
| const |
|
inlineoverrideprivatevirtual |
◆ GetCompleteDoorMeta()
Returns the complete meta composed from the both parts of the door as (TopMeta << 4) | BottomMeta The coords may point to either part of the door.
The returned value has bit 3 (0x08) set iff the coords point to the top part of the door. Fails silently for (invalid) doors on the world's top and bottom.
Definition at line 212 of file BlockDoor.h.
◆ GetMapBaseColourID()
|
inlineoverrideprivatevirtual |
◆ GetPlacementCollisionBox()
◆ GetRelativeDirectionToOutside()
static Vector3i cBlockDoorHandler::GetRelativeDirectionToOutside |
( |
NIBBLETYPE |
a_BlockMeta | ) |
|
|
inlinestatic |
Returns a vector pointing one block in the direction the door is facing (where the outside is).
Definition at line 49 of file BlockDoor.h.
◆ IsDoorBlockType()
static bool cBlockDoorHandler::IsDoorBlockType |
( |
BLOCKTYPE |
a_Block | ) |
|
|
inlinestatic |
Returns true if the specified blocktype is any kind of door.
Definition at line 61 of file BlockDoor.h.
◆ IsOpen()
Returns true iff the door at the specified coords is open.
The coords may point to either the top part or the bottom part of the door.
Definition at line 84 of file BlockDoor.h.
◆ IsUseable()
virtual bool cBlockDoorHandler::IsUseable |
( |
void |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ MetaMirrorXY()
◆ MetaMirrorYZ()
◆ MetaRotateCCW()
◆ MetaRotateCW()
◆ OnBroken()
◆ OnCancelRightClick()
◆ OnUse()
◆ SetOpen()
static void cBlockDoorHandler::SetOpen |
( |
cChunkInterface & |
a_ChunkInterface, |
|
|
const Vector3i |
a_BlockPos, |
|
|
bool |
a_Open |
|
) |
| |
|
inlinestatic |
Sets the door to the specified state.
If the door is already in that state, does nothing.
Definition at line 91 of file BlockDoor.h.
The documentation for this class was generated from the following files: