12 Super(pkFirework, a_Creator, a_Pos, 0.25f, 0.25f),
13 m_TicksToExplosion(a_Item.m_FireworkItem.m_FlightTimeInTicks),
14 m_FireworkItem(a_Item)
BLOCKTYPE GetBlock(int a_RelX, int a_RelY, int a_RelZ) const
const Vector3d & GetSpeed(void) const
Exported in ManualBindings.
bool IsTicking(void) const
Returns true if the entity is valid and ticking.
void SetGravity(float a_Gravity)
void Destroy()
Destroys the entity, schedules it for memory freeing and broadcasts the DestroyEntity packet.
void AddSpeedY(double a_AddSpeedY)
void AddPosition(double a_AddPosX, double a_AddPosY, double a_AddPosZ)
void SetAirDrag(float a_AirDrag)
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
virtual void HandlePhysics(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
Handles the physics of the entity - updates position based on speed, updates speed based on environme...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
cFireworkEntity(cEntity *a_Creator, Vector3d a_Pos, const cItem &a_Item)
virtual void OnHitSolidBlock(Vector3d a_HitPos, eBlockFace a_HitFace)
Called by the physics blocktracer when the entity hits a solid block, the hit position and the face h...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
bool m_IsInGround
True if the projectile has hit the ground and is stuck there.
virtual void BroadcastEntityAnimation(const cEntity &a_Entity, EntityAnimation a_Animation, const cClientHandle *a_Exclude=nullptr) override