Class Dimension.Builder
java.lang.Object
dev.wyck.level.dimension.Dimension.Builder
- Enclosing interface:
Dimension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientLight(float ambientLight) Sets the ambient light of this dimension type.attribute(EnvironmentAttributeSupplier<V> supplier, V value) Adds an attribute to this dimension type.attribute(FriendlyColorSupplier supplier, String hex) Adds a color attribute to this dimension type.attributes(EnvironmentAttributeMap attributes) Sets the attributes of this dimension type.build()Builds a newDimensionwith the given properties.cardinalLightType(CardinalLightType cardinalLightType) Sets the cardinal light type of this dimension type.coordinateScale(double coordinateScale) Sets the coordinate scale of this dimension type.defaultClock(@Nullable WorldClock defaultClock) Sets the default clock of this dimension type.hasCeiling(boolean hasCeiling) Sets whether this dimension type has a ceiling (e.g., the nether).hasEnderDragonFight(boolean hasEnderDragonFight) Sets whether this dimension type has an ender dragon fight.hasFixedTime(boolean hasFixedTime) Sets whether this dimension type has a fixed time.hasSkyLight(boolean hasSkyLight) If there should be light that comes from the sky.height(int height) Sets the height of this dimension type.infiniburn(Infiniburn infiniburn) Sets the infiniburn of this dimension type.logicalHeight(int logicalHeight) Sets the logical height of this dimension type.minY(int minY) Sets the minimum Y of this dimension type.modify()monsterSettings(MonsterSettings monsterSettings) Sets the monster settings of this dimension type.register()resourceKey(ResourceKey resourceKey) Sets the resource key of this dimension type.Sets the skybox of this dimension type.Adds a timeline to this dimension type.Sets the tagKey of timelines of this dimension type.Sets the timelines of this dimension type.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of this dimension type.- Parameters:
resourceKey- the resource key of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
hasFixedTime
Sets whether this dimension type has a fixed time.- Parameters:
hasFixedTime- whether this dimension type has a fixed time.- Returns:
- this builder
- Since:
- 2.4.0
-
hasSkyLight
If there should be light that comes from the sky.- Parameters:
hasSkyLight- whether this dimension type has sky light.- Returns:
- this builder
- Since:
- 2.4.0
-
hasCeiling
Sets whether this dimension type has a ceiling (e.g., the nether).- Parameters:
hasCeiling- whether this dimension type has a ceiling.- Returns:
- this builder
- Since:
- 2.4.0
-
hasEnderDragonFight
Sets whether this dimension type has an ender dragon fight.- Parameters:
hasEnderDragonFight- whether this dimension type has an ender dragon fight.- Returns:
- this builder
- Since:
- 2.4.0
-
coordinateScale
Sets the coordinate scale of this dimension type.- Parameters:
coordinateScale- the coordinate scale of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
minY
Sets the minimum Y of this dimension type.- Parameters:
minY- the minimum Y of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
height
Sets the height of this dimension type.- Parameters:
height- the height of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
logicalHeight
Sets the logical height of this dimension type.- Parameters:
logicalHeight- the logical height of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
infiniburn
Sets the infiniburn of this dimension type.- Parameters:
infiniburn- the infiniburn of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
ambientLight
Sets the ambient light of this dimension type.- Parameters:
ambientLight- the ambient light level of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
monsterSettings
Sets the monster settings of this dimension type.- Parameters:
monsterSettings- the monster settings of this dimension type.- Returns:
- this builder
- Since:
- 2.4.0
-
skybox
Sets the skybox of this dimension type.- Parameters:
skybox- the skybox of this dimension type- Returns:
- this builder
- Since:
- 2.4.0
-
cardinalLightType
Sets the cardinal light type of this dimension type.- Parameters:
cardinalLightType- the cardinal light type of this dimension type- Returns:
- this builder
- Since:
- 2.4.0
-
attributes
Sets the attributes of this dimension type.- Parameters:
attributes- the attributes of this dimension type- Returns:
- this builder
- Since:
- 2.4.0
-
attribute
@AsOf("2.4.0") public <V> Dimension.Builder attribute(EnvironmentAttributeSupplier<V> supplier, V value) Adds an attribute to this dimension type.- Type Parameters:
V- the type of the attribute value- Parameters:
supplier- the attribute suppliervalue- the value of the attribute- Returns:
- this builder
- Since:
- 2.4.0
-
attribute
Adds a color attribute to this dimension type.- Parameters:
supplier- the color attribute supplierhex- the hex value of the color attribute- Returns:
- this builder
- Since:
- 2.4.0
-
timelines
Sets the timelines of this dimension type.- Parameters:
timelines- the timelines of this dimension type- Returns:
- this builder
- Since:
- 3.2.0
-
timelines
Sets the tagKey of timelines of this dimension type.- Parameters:
timelines- the tagKey of timelines of this dimension type- Returns:
- this builder
- Since:
- 3.2.0
-
defaultClock
Sets the default clock of this dimension type.- Parameters:
defaultClock- the default clock of this dimension type- Returns:
- this builder
- Since:
- 2.4.0
-
timeline
Adds a timeline to this dimension type.- Parameters:
timeline- the timeline to add- Returns:
- this builder
- Since:
- 3.2.0
-
build
Builds a newDimensionwith the given properties.- Returns:
- a new
Dimensionwith the given properties. - Throws:
IllegalArgumentException- if the properties are invalid- Since:
- 2.4.0
-
register
-
modify
-