Interface IDhApiLevelWrapper
- All Superinterfaces:
IDhApiUnsafeWrapper
Can be either a Server or Client level.
A level is equivalent to a dimension in vanilla Minecraft.
A level is equivalent to a dimension in vanilla Minecraft.
- Since:
- API 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns a string intended to uniquely identify this level.Returns the folder Distant Horizons uses to save data associated with this level.default int
Deprecated.int
Returns the max block height of the leveldefault int
Returns the lowest possible block position for the level.Will return null if called on the server, or if called before the renderer has been set up.boolean
boolean
Methods inherited from interface com.seibel.distanthorizons.api.interfaces.IDhApiUnsafeWrapper
getWrappedMcObject
-
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.Deprecated, usegetMaxHeight()
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
-