@minecraft
    Preparing search index...

    Class DimensionTypes

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

    Index

    Methods

    Methods

    • Early execution

      Parameters

      • dimensionTypeId: string

      Returns 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.

    • Early execution

      Returns 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.