Enum in @minecraft/server
What kind of device a client runs on.
import { PlatformType } from '@minecraft/server';Example
Section titled “Example”import { PlatformType } from '@minecraft/server';
const value: PlatformType = PlatformType.Console;console.log(value); // "Console"import { PlatformType } from '@minecraft/server';
const value = PlatformType.Console;console.log(value); // "Console"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Console |
"Console" |
|
Desktop |
"Desktop" |
|
Mobile |
"Mobile" |