public interface Dimension extends Contextual
World
.Modifier and Type | Method and Description |
---|---|
boolean |
allowsPlayerRespawns()
Returns whether players can respawn within
Dimension after death. |
boolean |
doesWaterEvaporate()
Returns whether water evaporates for
Dimension . |
int |
getBuildHeight()
Gets the maximum y-coordinate a non-air cuboid can exist at of
World s in this dimension. |
GeneratorType |
getGeneratorType()
Gets the generator type of dimension.
|
int |
getHeight()
Gets the highest naturally generated y-coordinate of
World s in this dimension. |
int |
getMinimumSpawnHeight()
Returns the minimum spawn height for
Dimension . |
String |
getName()
Returns the name of this
Dimension . |
DimensionType |
getType()
Get the type of dimension.
|
boolean |
hasSky()
Returns whether this
Dimension has a sky (lack of bedrock). |
void |
setAllowsPlayerRespawns(boolean allow)
Sets whether players in this
Dimension can respawn. |
void |
setWaterEvaporates(boolean evaporates)
Sets whether water in this
Dimension evaporates. |
getContext
boolean allowsPlayerRespawns()
Dimension
after death.void setAllowsPlayerRespawns(boolean allow)
Dimension
can respawn.allow
- Whether players can respawnint getMinimumSpawnHeight()
Dimension
.boolean doesWaterEvaporate()
Dimension
.void setWaterEvaporates(boolean evaporates)
Dimension
evaporates.evaporates
- Whether water evaporatesboolean hasSky()
Dimension
has a sky (lack of bedrock).DimensionType getType()
int getHeight()
World
s in this dimension. Usually 128 (no sky) or 256 (sky).int getBuildHeight()
World
s in this dimension. Usually 256.GeneratorType getGeneratorType()