The DimensionTypes class in @minecraft/server.
Class in @minecraft/server
import { DimensionTypes } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Methods
Section titled “Methods”static
static get(dimensionTypeId: string): DimensionType | undefined;Parameters
dimensionTypeIdstring
Returns
DimensionType | undefinedTypes
getAll
Section titled “getAll”static
static getAll(): DimensionType[];Returns
DimensionType[]Types