3 #include "../BlockEntities/BlockEntity.h" 4 #include "../Entities/Entity.h" 62 m_BlockEntity(a_BlockEntity)
68 return Vector3i(m_BlockEntity->GetPosX(), m_BlockEntity->GetPosY(), m_BlockEntity->GetPosZ());
91 return m_Entity->GetPosition().
Floor();
Vector3< int > Floor(void) const
Returns a new Vector3i with coords set to std::floor() of this vector's coords.
virtual Vector3i GetBlockPos(void)=0
Returns the block position at which the element owning the window is.
cBlockEntityWindowOwner(cBlockEntity *a_BlockEntity)
cEntityWindowOwner(cEntity *a_Entity)
void SetOwner(cWindowOwner *a_Owner)
void OpenWindow(cWindow *a_Window)
cWindow * GetWindow(void) const
Base class for the window owning.
cBlockEntity * m_BlockEntity
Window owner that is associated with a block entity (chest, furnace, ...)
virtual Vector3i GetBlockPos(void) override
Returns the block position at which the element owning the window is.
virtual Vector3i GetBlockPos(void) override
Returns the block position at which the element owning the window is.
Window owner that is associated with an entity (chest minecart etc.)