Attachment

interface Attachment

Superclass for all attachments.

See also

Inheritors

Properties

Link copied to clipboard
abstract val passengerId: Int

The id of the entity that rides the player.

Link copied to clipboard
abstract val player: Player

The player that this Attachment is placed on.

Functions

Link copied to clipboard
abstract fun despawn()

Despawns all entities of this Attachment.

Link copied to clipboard
abstract fun handleTeleport()

Called when the player was teleported.

Link copied to clipboard
abstract fun handleTick()

Called every tick by the AttachmentManager.