@minecraft
    正在准备搜索索引...

    类 DimensionTypes

    Used for accessing all available dimension types. Currently only works with Vanilla dimensions.

    索引

    方法

    方法

    • 早期执行

      参数

      • dimensionTypeId: string

      返回 DimensionType

      Retrieves a dimension type using a string-based identifier. Works with both vanilla dimensions and custom dimensions. Custom dimensions cannot be retrieved until after the system startup event has completed.

    • 早期执行

      返回 DimensionType[]

      Retrieves an array of all dimension types. Includes both vanilla dimensions and custom dimensions. Custom dimensions are not included until after the system startup event has completed.