spawn

@ApiStatus.Internal
open fun spawn(@NotNull player: @NotNull PlatformPlayer, @NotNull bundler: @NotNull PacketBundler, @NotNull consumer: @NotNull Consumer<RenderPipeline.SpawnedPlayer>): Boolean

Spawns the model for a player and bundles initial packets.


pipeline.spawn(player, bundler, spawned -> {
    spawned.load();
});

Return

true if spawned successfully, false if the player is not registered in player manager

Since

1.15.2

Parameters

player

the player to spawn for

bundler

the packet bundler to receive spawn packets

consumer

a consumer accepting the newly created SpawnedPlayer

Throws

if player, bundler, or consumer is null