Interface IDhApiLevelWrapper

All Superinterfaces:
IDhApiUnsafeWrapper

public interface IDhApiLevelWrapper extends IDhApiUnsafeWrapper
Can be either a Server or Client level.
A level is equivalent to a dimension in vanilla Minecraft.
Since:
API 1.0.0
  • Method Details

    • getDimensionType

      IDhApiDimensionTypeWrapper getDimensionType()
    • getDimensionName

      String getDimensionName()
      Since:
      API 4.0.0
    • getDhIdentifier

      String getDhIdentifier()
      Returns a string intended to uniquely identify this level.
      Since:
      API 4.0.0
    • getLevelType

      EDhApiLevelType getLevelType()
    • hasCeiling

      boolean hasCeiling()
    • hasSkyLight

      boolean hasSkyLight()
    • getHeight

      @Deprecated default int getHeight()
      Deprecated.
      Deprecated, use getMaxHeight() instead.
      Returns the max block height of the level.
      See Also:
    • getMaxHeight

      int getMaxHeight()
      Returns the max block height of the level
      Since:
      API 3.0.0
    • getMinHeight

      default int getMinHeight()
      Returns the lowest possible block position for the level.
      For MC versions before 1.18 this will return 0.
    • getRenderRegister

      IDhApiCustomRenderRegister getRenderRegister()
      Will return null if called on the server, or if called before the renderer has been set up.
      Since:
      API 3.0.0
    • getDhSaveFolder

      File getDhSaveFolder()
      Returns the folder Distant Horizons uses to save data associated with this level. Will return null if the level is not loaded.
      Since:
      API 4.0.0