53 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override 64 switch (a_ProtocolFace)
72 LOGINFO(
"Invalid facing (%d) in a cHangingEntity, adjusting to BLOCK_FACE_XP.", a_ProtocolFace);
73 ASSERT(!
"Tried to convert a bad facing!");
Byte GetProtocolFacing() const
Returns the direction in which the entity is facing.
static Byte BlockFaceToProtocolFace(eBlockFace a_BlockFace)
Converts eBlockFace values to protocol hanging item faces.
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
void SetFacing(eBlockFace a_Facing)
Set the direction in which the entity is facing.
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
static eBlockFace ProtocolFaceToBlockFace(Byte a_ProtocolFace)
Converts protocol hanging item facing to eBlockFace values.
void LOGINFO(const char *a_Format, fmt::ArgList a_ArgList)
eBlockFace GetFacing() const
Returns the direction in which the entity is facing.
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
cEntity(eEntityType a_EntityType, Vector3d a_Pos, double a_Width, double a_Height)
void SetProtocolFacing(Byte a_Facing)
Set the direction in which the entity is facing.
#define CLASS_PROTODEF(classname)
#define UNREACHABLE(x)
Use to mark code that should be impossible to reach.