Record Class CaveCarverConfiguration
java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.CaveCarverConfiguration
- All Implemented Interfaces:
Wrapper, CarverConfiguration, FeatureConfiguration
@NullMarked
@AsOf("2.3.0")
public record CaveCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider horizontalRadiusMultiplier, FloatProvider verticalRadiusMultiplier, FloatProvider floorLevel)
extends Record
implements CarverConfiguration
Wraps Minecraft's CaveCarverConfiguration, the configuration consumed by both
the CAVE and NETHER_CAVE carvers.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for creating a CaveCarverConfiguration.protected static interfaceNested 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
ConstructorsConstructorDescriptionCaveCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider horizontalRadiusMultiplier, FloatProvider verticalRadiusMultiplier, FloatProvider floorLevel) Creates an instance of aCaveCarverConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedebugSettingsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefloorLevelrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalRadiusMultiplierrecord component.Returns the value of thelavaLevelrecord component.floatReturns the value of theprobabilityrecord component.Returns the value of thereplaceablerecord component.Convert this handle to the real Minecraft object.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalRadiusMultiplierrecord component.y()Returns the value of theyrecord component.yScale()Returns the value of theyScalerecord component.
-
Constructor Details
-
CaveCarverConfiguration
@AsOf("2.3.0") public CaveCarverConfiguration(float probability, HeightProvider y, FloatProvider yScale, VerticalAnchor lavaLevel, CarverDebugSettings debugSettings, Collection<Material> replaceable, FloatProvider horizontalRadiusMultiplier, FloatProvider verticalRadiusMultiplier, FloatProvider floorLevel) Creates an instance of aCaveCarverConfigurationrecord 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 componenthorizontalRadiusMultiplier- the value for thehorizontalRadiusMultiplierrecord componentverticalRadiusMultiplier- the value for theverticalRadiusMultiplierrecord componentfloorLevel- the value for thefloorLevelrecord component
-
-
Method Details
-
builder
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceFeatureConfiguration- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-
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
-
horizontalRadiusMultiplier
Returns the value of thehorizontalRadiusMultiplierrecord component.- Returns:
- the value of the
horizontalRadiusMultiplierrecord component
-
verticalRadiusMultiplier
Returns the value of theverticalRadiusMultiplierrecord component.- Returns:
- the value of the
verticalRadiusMultiplierrecord component
-
floorLevel
Returns the value of thefloorLevelrecord component.- Returns:
- the value of the
floorLevelrecord component
-