Interface Dimension
- All Known Implementing Classes:
DimensionImpl
Wraps a minecraft dimension type.
- Since:
- 2.4.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Method Summary
Modifier and TypeMethodDescriptionfloatThe ambient light of this dimension type.The attributes of this dimension type.static Dimension.Builderbuilder()Creates a newDimension.Builderwith the given resource key.static Dimension.Builderbuilder(ResourceKey resourceKey) Creates a newDimension.Builderwith the given resource key.The cardinal light type of this dimension type.doubleThe coordinate scale of this dimension type.The default clock of this dimension type.booleanWhether this dimension type has a ceiling (e.g., the nether).booleanWhether this dimension type has an ender dragon fight.booleanWhether this dimension type has a fixed time.booleanIf there should be light that comes from the sky.intheight()The height of this dimension type.A tag of blocks that will burn infinitely in this dimension type.booleanChecks if this dimension type is similar to another.intThe logical height of this dimension type.intminY()The minimum Y of this dimension type.default Dimensionmodify()Modifies this dimension type in the dimension registry.The monster settings of this dimension type.static Dimensionreference(ResourceKey resourceKey) Simply holds a reference to a dimension.default Dimensionregister()Registers this dimension type to the dimension registry.The key of this dimension type.skybox()The skybox of this dimension type.The timelines of this dimension type.default Dimension.BuilderCreates a newDimension.Builderwith the same properties as this dimension type.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Method Details
-
resourceKey
The key of this dimension type.- Returns:
- the key of this dimension type.
- Since:
- 2.4.0
-
hasFixedTime
Whether this dimension type has a fixed time.- Returns:
- whether this dimension type has a fixed time.
- Since:
- 2.4.0
-
hasSkyLight
If there should be light that comes from the sky.- Returns:
- whether this dimension type has sky light.
- Since:
- 2.4.0
-
hasCeiling
Whether this dimension type has a ceiling (e.g., the nether).- Returns:
- whether this dimension type has a ceiling.
- Since:
- 2.4.0
-
hasEnderDragonFight
Whether this dimension type has an ender dragon fight.- Returns:
- whether this dimension type has an ender dragon fight.
- Since:
- 2.4.0
-
coordinateScale
The coordinate scale of this dimension type.- Returns:
- the coordinate scale of this dimension type.
- Since:
- 2.4.0
-
minY
The minimum Y of this dimension type.- Returns:
- the minimum Y of this dimension type.
- Since:
- 2.4.0
-
height
The height of this dimension type.- Returns:
- the height of this dimension type.
- Since:
- 2.4.0
-
logicalHeight
The logical height of this dimension type.- Returns:
- the logical height of this dimension type.
- Since:
- 2.4.0
-
infiniburn
A tag of blocks that will burn infinitely in this dimension type.- Returns:
- the infiniburn of this dimension type.
- Since:
- 2.4.0
-
ambientLight
The ambient light of this dimension type.- Returns:
- the ambient light level of this dimension type.
- Since:
- 2.4.0
-
monsterSettings
The monster settings of this dimension type.- Returns:
- the monster settings of this dimension type.
- Since:
- 2.4.0
-
skybox
-
cardinalLightType
The cardinal light type of this dimension type.- Returns:
- the cardinal light type of this dimension type.
- Since:
- 2.4.0
-
attributes
The attributes of this dimension type.- Returns:
- the attributes of this dimension type.
- Since:
- 2.4.0
-
timelines
The timelines of this dimension type.- Returns:
- the timelines of this dimension type.
- Since:
- 2.4.0
-
defaultClock
The default clock of this dimension type.- Returns:
- the default clock of this dimension type.
- Since:
- 2.4.0
-
isSimilar
Checks if this dimension type is similar to another.- Parameters:
other- the other dimension type to compare to- Returns:
- whether this dimension type is similar to the other
- Since:
- 2.4.0
-
register
-
modify
-
toBuilder
Creates a newDimension.Builderwith the same properties as this dimension type.- Returns:
- a new
Dimension.Builderwith the same properties as this dimension type. - Since:
- 2.4.0
-
builder
Creates a newDimension.Builderwith the given resource key.- Returns:
- a new
Dimension.Builderwith the given resource key. - Since:
- 2.4.0
-
builder
Creates a newDimension.Builderwith the given resource key.- Parameters:
resourceKey- the resource key to seed the builder with- Returns:
- a new
Dimension.Builderwith the given resource key. - Since:
- 2.4.0
-
reference
Simply holds a reference to a dimension.- Parameters:
resourceKey- the resource key of the dimension- Returns:
- a new dimension reference
- Since:
- 2.4.0
-