adapt

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

Adapts an NMS entity to a PlatformEntity.

Return

the platform entity

Since

2.0.0

Parameters

entity

the NMS entity


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

Adapts an NMS living entity to a PlatformLivingEntity.

Return

the platform living entity

Since

2.0.0

Parameters

livingEntity

the NMS living entity


@NotNull
open fun adapt(@NotNull connection: @NotNull ServerPlayerConnection): @NotNull PlatformPlayer

Adapts an NMS player connection to a PlatformPlayer.

Return

the platform player

Since

2.0.0

Parameters

connection

the NMS player connection


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

Adapts an NMS server player to a PlatformPlayer.

Return

the platform player

Since

2.0.0

Parameters

player

the NMS server player


@NotNull
open fun adapt(@NotNull uuid: @NotNull UUID): @NotNull PlatformOfflinePlayer

Adapts a UUID to a PlatformOfflinePlayer.

Return

the platform offline player

Since

2.0.0

Parameters

uuid

the player UUID


@NotNull
open fun adapt(@NotNull profile: @NotNull GameProfile): @NotNull PlatformOfflinePlayer

Adapts a GameProfile to a PlatformOfflinePlayer.

Return

the platform offline player

Since

2.0.0

Parameters

profile

the game profile


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

Adapts an NMS item stack to a PlatformItemStack.

Return

the platform item stack

Since

2.0.0

Parameters

itemStack

the NMS item stack


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

Adapts an NMS level to a PlatformWorld.

Return

the platform world

Since

2.0.0

Parameters

world

the NMS level