CakeEntity

public CakeEntity CakeEntity(World world, Vec3d position, Vec3d velocity, LivingEntity thrower)(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


public CakeEntity CakeEntity(EntityType<CakeEntity> entityType, World world)(source)