throwCake

public final static Unit throwCake(World world, Vec3d position, Vec3d velocity, LivingEntity thrower)(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