adapt

@NotNull
open fun adapt(@NotNull entity: @NotNull Entity): @NotNull PlatformEntity

Adapts a Bukkit entity to a PlatformEntity.

Return

the platform entity

Since

2.0.0

Parameters

entity

the Bukkit entity


@NotNull
open fun adapt(@NotNull livingEntity: @NotNull LivingEntity): @NotNull PlatformLivingEntity

Adapts a Bukkit living entity to a PlatformLivingEntity.

Return

the platform living entity

Since

2.0.0

Parameters

livingEntity

the Bukkit living entity


@NotNull
open fun adapt(@NotNull player: @NotNull OfflinePlayer): @NotNull PlatformOfflinePlayer

Adapts a Bukkit offline player to a PlatformOfflinePlayer.

Return

the platform offline player

Since

2.0.0

Parameters

player

the Bukkit offline player


@NotNull
open fun adapt(@NotNull player: @NotNull Player): @NotNull PlatformPlayer

Adapts a Bukkit player to a PlatformPlayer.

Return

the platform player

Since

2.0.0

Parameters

player

the Bukkit player


@NotNull
open fun adapt(@NotNull itemStack: @NotNull ItemStack): @NotNull PlatformItemStack

Adapts a Bukkit item stack to a PlatformItemStack.

Return

the platform item stack

Since

2.0.0

Parameters

itemStack

the Bukkit item stack


@NotNull
open fun adapt(@NotNull location: @NotNull Location): @NotNull PlatformLocation

Adapts a Bukkit location to a PlatformLocation.

Return

the platform location

Since

2.0.0

Parameters

location

the Bukkit location


@NotNull
open fun adapt(@NotNull world: @NotNull World): @NotNull PlatformWorld

Adapts a Bukkit world to a PlatformWorld.

Return

the platform world

Since

2.0.0

Parameters

world

the Bukkit world