setSleepAnimation

abstract fun setSleepAnimation(player: Player, entityId: Int, location: Location)

Sends a sleep animation packet for an entity at the given location to the player.

Parameters

player

The target player.

entityId

The entity to put to sleep.

location

The location of the bed.