MCPcopy Create free account
hub / github.com/cuberite/cuberite / SpawnOn

Method SpawnOn

src/Entities/ProjectileEntity.cpp:388–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386
387
388void cProjectileEntity::SpawnOn(cClientHandle & a_Client)
389{
390 // Default spawning - use the projectile kind to spawn an object:
391 a_Client.SendSpawnObject(*this, m_ProjectileKind, 12, ANGLE_TO_PROTO(GetYaw()), ANGLE_TO_PROTO(GetPitch()));
392 a_Client.SendEntityMetadata(*this);
393}
394
395
396

Callers

nothing calls this directly

Calls 2

SendSpawnObjectMethod · 0.45
SendEntityMetadataMethod · 0.45

Tested by

no test coverage detected