Class DimensionImpl
java.lang.Object
dev.wyck.model.level.dimension.DimensionImpl
@NullMarked
@AsOf("2.4.0")
@Internal
public final class DimensionImpl
extends Object
implements Dimension
This class represents a custom dimension type implementation.
- Since:
- 2.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Dimension
Dimension.BuilderNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Constructor Summary
ConstructorsConstructorDescriptionDimensionImpl(ResourceKey resourceKey, boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, boolean hasEnderDragonFight, double coordinateScale, int minY, int height, int logicalHeight, Infiniburn infiniburn, float ambientLight, MonsterSettings monsterSettings, Skybox skybox, CardinalLightType cardinalLightType, EnvironmentAttributeMap attributes, TimelineSet timelines, @Nullable WorldClock defaultClock) -
Method Summary
Modifier and TypeMethodDescriptionfloatThe ambient light of this dimension type.The attributes of this dimension type.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.key()intThe logical height of this dimension type.intminY()The minimum Y of this dimension type.The monster settings of this dimension type.The key of this dimension type.skybox()The skybox of this dimension type.The timelines of this dimension type.Convert this handle to the real Minecraft object.
-
Constructor Details
-
DimensionImpl
@AsOf("2.4.0") public DimensionImpl(ResourceKey resourceKey, boolean hasFixedTime, boolean hasSkyLight, boolean hasCeiling, boolean hasEnderDragonFight, double coordinateScale, int minY, int height, int logicalHeight, Infiniburn infiniburn, float ambientLight, MonsterSettings monsterSettings, Skybox skybox, CardinalLightType cardinalLightType, EnvironmentAttributeMap attributes, TimelineSet timelines, @Nullable WorldClock defaultClock)
-
-
Method Details
-
resourceKey
Description copied from interface:DimensionThe key of this dimension type.- Specified by:
resourceKeyin interfaceDimension- Returns:
- the key of this dimension type.
-
hasFixedTime
public boolean hasFixedTime()Description copied from interface:DimensionWhether this dimension type has a fixed time.- Specified by:
hasFixedTimein interfaceDimension- Returns:
- whether this dimension type has a fixed time.
-
hasSkyLight
public boolean hasSkyLight()Description copied from interface:DimensionIf there should be light that comes from the sky.- Specified by:
hasSkyLightin interfaceDimension- Returns:
- whether this dimension type has sky light.
-
hasCeiling
public boolean hasCeiling()Description copied from interface:DimensionWhether this dimension type has a ceiling (e.g., the nether).- Specified by:
hasCeilingin interfaceDimension- Returns:
- whether this dimension type has a ceiling.
-
hasEnderDragonFight
public boolean hasEnderDragonFight()Description copied from interface:DimensionWhether this dimension type has an ender dragon fight.- Specified by:
hasEnderDragonFightin interfaceDimension- Returns:
- whether this dimension type has an ender dragon fight.
-
coordinateScale
public double coordinateScale()Description copied from interface:DimensionThe coordinate scale of this dimension type.- Specified by:
coordinateScalein interfaceDimension- Returns:
- the coordinate scale of this dimension type.
-
minY
-
height
-
logicalHeight
public int logicalHeight()Description copied from interface:DimensionThe logical height of this dimension type.- Specified by:
logicalHeightin interfaceDimension- Returns:
- the logical height of this dimension type.
-
infiniburn
Description copied from interface:DimensionA tag of blocks that will burn infinitely in this dimension type.- Specified by:
infiniburnin interfaceDimension- Returns:
- the infiniburn of this dimension type.
-
ambientLight
public float ambientLight()Description copied from interface:DimensionThe ambient light of this dimension type.- Specified by:
ambientLightin interfaceDimension- Returns:
- the ambient light level of this dimension type.
-
monsterSettings
Description copied from interface:DimensionThe monster settings of this dimension type.- Specified by:
monsterSettingsin interfaceDimension- Returns:
- the monster settings of this dimension type.
-
skybox
-
cardinalLightType
Description copied from interface:DimensionThe cardinal light type of this dimension type.- Specified by:
cardinalLightTypein interfaceDimension- Returns:
- the cardinal light type of this dimension type.
-
attributes
Description copied from interface:DimensionThe attributes of this dimension type.- Specified by:
attributesin interfaceDimension- Returns:
- the attributes of this dimension type.
-
timelines
Description copied from interface:DimensionThe timelines of this dimension type. -
defaultClock
Description copied from interface:DimensionThe default clock of this dimension type.- Specified by:
defaultClockin interfaceDimension- Returns:
- the default clock of this dimension type.
-
isSimilar
Description copied from interface:DimensionChecks if this dimension type is similar to another. -
key
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-