Interface in @minecraft/server
What a client says of the device it runs on.
import type { ClientSystemInfo } from '@minecraft/server';Example
Section titled “Example”import { world, type ClientSystemInfo } from '@minecraft/server';
for (const player of world.getAllPlayers()) { const clientSystemInfo: ClientSystemInfo = player.clientSystemInfo; console.log(player.name, clientSystemInfo.platformType);}import { world } from '@minecraft/server';
for (const player of world.getAllPlayers()) { const clientSystemInfo = player.clientSystemInfo; console.log(player.name, clientSystemInfo.platformType);}Properties
Section titled “Properties”platformType
Section titled “platformType”read-only
readonly platformType: PlatformType;Types