adapt

@NotNull
abstract fun adapt(@NotNull entity: @NotNull Entity): @NotNull BaseBukkitEntity

Adapts a Bukkit entity to a BaseBukkitEntity, handling Folia compatibility.

Return

the adapted entity

Since

1.15.2

Parameters

entity

the Bukkit entity


@NotNull
abstract fun adapt(@NotNull player: @NotNull Player): @NotNull BaseBukkitPlayer

Adapts a Bukkit player to a BaseBukkitPlayer, handling Folia compatibility.

Return

the adapted player

Since

1.15.2

Parameters

player

the Bukkit player