Builder

A builder for dimension types.

Functions

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun ambientLight(light: Float): DimensionType.Builder

Sets the ambient light amount for the dimension type.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun beds(): DimensionType.Builder

Makes the dimension type allow beds to be used.

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull DimensionType
Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun ceiling(): DimensionType.Builder

Makes the dimension type have a ceiling.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun coordinateScale(scale: Double): DimensionType.Builder

Sets the coordinate scale for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun effects(effects: Key): DimensionType.Builder

Sets the location that will be used by the client to look up the effects for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun fixedTime(time: Long): DimensionType.Builder

Sets the fixed time for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun height(level: Int): DimensionType.Builder

Sets the maximum Y level (height) for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun infiniburn(infiniburn: TagKey<Block>): DimensionType.Builder

Sets the infiniburn settings for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun logicalHeight(level: Int): DimensionType.Builder

Sets the maximum logical Y level (height) for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun maximumMonsterSpawnLightLevel(level: Int): DimensionType.Builder

Sets the maximum monster spawn light level for the dimension type to the given level.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun minimumMonsterSpawnLightLevel(level: Int): DimensionType.Builder

Sets the minimum monster spawn light level for the dimension type to the given level.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun minimumY(level: Int): DimensionType.Builder

Sets the minimum Y level for the dimension type.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun monsterSpawnBlockLightLimit(limit: Int): DimensionType.Builder

Sets the monster spawn block light limit for the dimension type to the given limit.

Link copied to clipboard
@Contract(value = "_, _ -> this", mutates = "this")
open fun monsterSpawnLightLevels(minimum: Int, maximum: Int): DimensionType.Builder

Sets the light level range at which monsters will spawn for the dimension type to the given minimum and maximum.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun natural(): DimensionType.Builder

Makes the dimension type natural.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun noFixedTime(): DimensionType.Builder

Makes the dimension type have no fixed time.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun piglinSafe(): DimensionType.Builder

Makes the dimension type safe for piglins.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun raids(): DimensionType.Builder

Makes the dimension type have raids.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun respawnAnchors(): DimensionType.Builder

Makes the dimension type allow respawn anchors to be used.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun skylight(): DimensionType.Builder

Makes the dimension type have skylight.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun ultrawarm(): DimensionType.Builder

Makes the dimension type ultrawarm.