createGameProfile

fun createGameProfile(entityUuid: UUID, skinIndex: Int, profileName: String): GameProfile(source)

Creates a GameProfile with a specific skin variant for use in player info packets.

Parameters

entityUuid

The UUID of the entity instance being spawned

skinIndex

The index into the SKINS list (clamped to valid range)

profileName

The display name to use for the fake player profile (trimmed to protocol limits)


fun createGameProfile(entityUuid: UUID, skinIndex: Int): GameProfile(source)

Creates a GameProfile with the default Lorekeeper profile name.

Parameters

entityUuid

The UUID of the entity instance being spawned

skinIndex

The index into the SKINS list (clamped to valid range)