CakeEntity

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

Creates a new CakeEntity.

Parameters

world

The world to create the cake in

position

The position of the cake to spawn at

velocity

The velocity of the spawned cake

thrower

The entity that threw the cake


constructor(entityType: EntityType<CakeEntity>, world: World)(source)