DimensionType

@CataloguedBy(catalogue = DimensionTypes::class)
interface DimensionType : Keyed

Represents data for a dimension.

Types

Link copied to clipboard

A builder for dimension types.

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Functions

Link copied to clipboard
@NotNull
abstract fun key(): @NotNull Key

Properties

Link copied to clipboard
@get:JvmName(name = "allowBeds")
abstract val allowBeds: Boolean

If beds can be slept in. If false, beds will explode when used (boom).

Link copied to clipboard
@get:JvmName(name = "allowRespawnAnchors")
abstract val allowRespawnAnchors: Boolean

If respawn anchors can be charged and used.

Link copied to clipboard
@get:JvmName(name = "ambientLight")
abstract val ambientLight: Float

The amount of lighting clients will display when in this dimension.

Link copied to clipboard
@get:JvmName(name = "coordinateScale")
abstract val coordinateScale: Double

The scale of coordinates. For example, in the nether, the coordinate scale is 8.0, as for every 1 block you walk in the nether, you will walk 8 blocks in dimensions with a coordinate scale of 1.0, such as the overworld and the end.

Link copied to clipboard
@get:JvmName(name = "effects")
abstract val effects: Key

The location where the client can find the settings for the effects this dimension type will have on the environment.

Link copied to clipboard
@get:JvmName(name = "fixedTime")
abstract val fixedTime: OptionalLong

The time it will always be. If null, the time will progress normally.

Link copied to clipboard
@get:JvmName(name = "hasCeiling")
abstract val hasCeiling: Boolean

If there is a ceiling made of blocks.

Link copied to clipboard
@get:JvmName(name = "hasRaids")
abstract val hasRaids: Boolean

If raids will spawn naturally.

Link copied to clipboard
@get:JvmName(name = "hasSkylight")
abstract val hasSkylight: Boolean

If there is global lighting (light from the sky).

Link copied to clipboard
@get:JvmName(name = "height")
abstract val height: Int

The maximum Y level that can be built at.

Link copied to clipboard
@get:JvmName(name = "infiniburn")
abstract val infiniburn: TagKey<Block>

The settings used to define which blocks burn infinitely.

Link copied to clipboard
abstract val isNatural: Boolean

If portals created will spawn zombified piglins naturally, and if the compass works properly.

Link copied to clipboard
abstract val isPiglinSafe: Boolean

If piglins will transform in to zombified piglins over time.

Link copied to clipboard
abstract val isUltrawarm: Boolean

If water will evaporate or wet sponges will become regular sponges when placed, and if laval will flow faster and thinner.

Link copied to clipboard
@get:JvmName(name = "logicalHeight")
abstract val logicalHeight: Int

The maximum logical Y level that can be built at.

Link copied to clipboard
@get:JvmName(name = "maximumMonsterSpawnLightLevel")
abstract val maximumMonsterSpawnLightLevel: Int

The maximum light level that monsters can spawn at.

Link copied to clipboard
@get:JvmName(name = "minimumMonsterSpawnLightLevel")
abstract val minimumMonsterSpawnLightLevel: Int

The minimum light level that monsters can spawn at.

Link copied to clipboard
@get:JvmName(name = "minimumY")
abstract val minimumY: Int

The minimum Y level that can be built at.

Link copied to clipboard
@get:JvmName(name = "monsterSpawnBlockLightLimit")
abstract val monsterSpawnBlockLightLimit: Int

The minimum block light level that is required for monsters to spawn.