throwCake

fun throwCake(world: World, position: Vec3d, velocity: Vec3d, thrower: LivingEntity?)(source)

Creates a new CakeEntity and throws it.

Parameters

world

The world to spawn the cake in

position

The position to spawn the cake at

velocity

The speed of the cake

thrower

The owner of the cake, who takes credit for the cake's damage. If null, no sound is played