Record Class CanyonCarverConfiguration
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.CanyonCarverConfiguration
- All Implemented Interfaces:
Wrapper, CarverConfiguration, FeatureConfiguration
@NullMarked
@AsOf("2.3.0")
public record CanyonCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider verticalRotation, CanyonShapeConfiguration shape)
extends Record
implements CarverConfiguration
Wraps Minecraft's CanyonCarverConfiguration, the configuration consumed by
the CANYON carver.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for creating a CanyonCarverConfiguration.Nested classes/interfaces inherited from interface FeatureConfiguration
FeatureConfiguration.ColumnConfiguration, FeatureConfiguration.CountConfiguration, FeatureConfiguration.DripstoneClusterConfiguration, FeatureConfiguration.LargeDripstoneConfiguration, FeatureConfiguration.NoneConfiguration, FeatureConfiguration.PointedDripstoneConfiguration, FeatureConfiguration.ProbabilityConfiguration, FeatureConfiguration.SculkPatchConfigurationNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Constructor Summary
ConstructorsConstructorDescriptionCanyonCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider verticalRotation, CanyonShapeConfiguration shape) Creates an instance of aCanyonCarverConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new Builder for CanyonCarverConfiguration.Returns the value of thedebugSettingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelavaLevelrecord component.floatReturns the value of theprobabilityrecord component.Returns the value of thereplaceablerecord component.shape()Returns the value of theshaperecord component.Converts this CanyonCarverConfiguration to an NMS CanyonCarverConfiguration.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalRotationrecord component.y()Returns the value of theyrecord component.yScale()Returns the value of theyScalerecord component.
-
Constructor Details
-
CanyonCarverConfiguration
@AsOf("2.3.0") public CanyonCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider verticalRotation, CanyonShapeConfiguration shape) Creates an instance of aCanyonCarverConfigurationrecord class.- Parameters:
probability- the value for theprobabilityrecord componenty- the value for theyrecord componentyScale- the value for theyScalerecord componentlavaLevel- the value for thelavaLevelrecord componentdebugSettings- the value for thedebugSettingsrecord componentreplaceable- the value for thereplaceablerecord componentverticalRotation- the value for theverticalRotationrecord componentshape- the value for theshaperecord component
-
-
Method Details
-
builder
Creates a new Builder for CanyonCarverConfiguration.- Returns:
- a new Builder for CanyonCarverConfiguration
- Since:
- 2.3.0
-
toMinecraft
Converts this CanyonCarverConfiguration to an NMS CanyonCarverConfiguration.- Specified by:
toMinecraftin interfaceFeatureConfiguration- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the NMS CanyonCarverConfiguration
- Since:
- 2.3.0
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
probability
public float probability()Returns the value of theprobabilityrecord component.- Specified by:
probabilityin interfaceCarverConfiguration- Returns:
- the value of the
probabilityrecord component
-
y
Returns the value of theyrecord component.- Specified by:
yin interfaceCarverConfiguration- Returns:
- the value of the
yrecord component
-
yScale
Returns the value of theyScalerecord component.- Specified by:
yScalein interfaceCarverConfiguration- Returns:
- the value of the
yScalerecord component
-
lavaLevel
Returns the value of thelavaLevelrecord component.- Specified by:
lavaLevelin interfaceCarverConfiguration- Returns:
- the value of the
lavaLevelrecord component
-
debugSettings
Returns the value of thedebugSettingsrecord component.- Specified by:
debugSettingsin interfaceCarverConfiguration- Returns:
- the value of the
debugSettingsrecord component
-
replaceable
Returns the value of thereplaceablerecord component.- Specified by:
replaceablein interfaceCarverConfiguration- Returns:
- the value of the
replaceablerecord component
-
verticalRotation
Returns the value of theverticalRotationrecord component.- Returns:
- the value of the
verticalRotationrecord component
-
shape
Returns the value of theshaperecord component.- Returns:
- the value of the
shaperecord component
-