adapt

@NotNull
abstract fun adapt(@NotNull entity: @NotNull PlatformEntity): @NotNull BaseEntity

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

Return

the adapted entity

Since

1.15.2

Parameters

entity

the Bukkit entity


@NotNull
abstract fun adapt(@NotNull player: @NotNull PlatformPlayer): @NotNull BasePlayer

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

Return

the adapted player

Since

1.15.2

Parameters

player

the Bukkit player