Record Class VegetationPatchConfiguration
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.feature.configurations.VegetationPatchConfiguration
- All Implemented Interfaces:
FeatureConfiguration
public record VegetationPatchConfiguration(HolderSet<Block> replaceable, BlockStateProvider groundState, Holder<PlacedFeature> vegetationFeature, CaveSurface surface, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider xzRadius, float extraEdgeColumnChance)
extends Record
implements FeatureConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<VegetationPatchConfiguration> private final IntProviderThe field for thedepthrecord component.private final floatThe field for theextraBottomBlockChancerecord component.private final floatThe field for theextraEdgeColumnChancerecord component.private final BlockStateProviderThe field for thegroundStaterecord component.The field for thereplaceablerecord component.private final CaveSurfaceThe field for thesurfacerecord component.private final floatThe field for thevegetationChancerecord component.private final Holder<PlacedFeature> The field for thevegetationFeaturerecord component.private final intThe field for theverticalRangerecord component.private final IntProviderThe field for thexzRadiusrecord component.Fields inherited from interface FeatureConfiguration
NONE -
Constructor Summary
ConstructorsConstructorDescriptionVegetationPatchConfiguration(HolderSet<Block> replaceable, BlockStateProvider groundState, Holder<PlacedFeature> vegetationFeature, CaveSurface surface, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider xzRadius, float extraEdgeColumnChance) Creates an instance of aVegetationPatchConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theextraBottomBlockChancerecord component.floatReturns the value of theextraEdgeColumnChancerecord component.Returns the value of thegroundStaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thereplaceablerecord component.surface()Returns the value of thesurfacerecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of thevegetationChancerecord component.Returns the value of thevegetationFeaturerecord component.intReturns the value of theverticalRangerecord component.xzRadius()Returns the value of thexzRadiusrecord component.Methods inherited from interface FeatureConfiguration
getSubFeatures
-
Field Details
-
replaceable
-
groundState
The field for thegroundStaterecord component. -
vegetationFeature
The field for thevegetationFeaturerecord component. -
surface
The field for thesurfacerecord component. -
depth
The field for thedepthrecord component. -
extraBottomBlockChance
private final float extraBottomBlockChanceThe field for theextraBottomBlockChancerecord component. -
verticalRange
private final int verticalRangeThe field for theverticalRangerecord component. -
vegetationChance
private final float vegetationChanceThe field for thevegetationChancerecord component. -
xzRadius
The field for thexzRadiusrecord component. -
extraEdgeColumnChance
private final float extraEdgeColumnChanceThe field for theextraEdgeColumnChancerecord component. -
CODEC
-
-
Constructor Details
-
VegetationPatchConfiguration
public VegetationPatchConfiguration(HolderSet<Block> replaceable, BlockStateProvider groundState, Holder<PlacedFeature> vegetationFeature, CaveSurface surface, IntProvider depth, float extraBottomBlockChance, int verticalRange, float vegetationChance, IntProvider xzRadius, float extraEdgeColumnChance) Creates an instance of aVegetationPatchConfigurationrecord class.- Parameters:
replaceable- the value for thereplaceablerecord componentgroundState- the value for thegroundStaterecord componentvegetationFeature- the value for thevegetationFeaturerecord componentsurface- the value for thesurfacerecord componentdepth- the value for thedepthrecord componentextraBottomBlockChance- the value for theextraBottomBlockChancerecord componentverticalRange- the value for theverticalRangerecord componentvegetationChance- the value for thevegetationChancerecord componentxzRadius- the value for thexzRadiusrecord componentextraEdgeColumnChance- the value for theextraEdgeColumnChancerecord component
-
-
Method Details
-
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. -
replaceable
-
groundState
Returns the value of thegroundStaterecord component.- Returns:
- the value of the
groundStaterecord component
-
vegetationFeature
Returns the value of thevegetationFeaturerecord component.- Returns:
- the value of the
vegetationFeaturerecord component
-
surface
Returns the value of thesurfacerecord component.- Returns:
- the value of the
surfacerecord component
-
depth
Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
extraBottomBlockChance
public float extraBottomBlockChance()Returns the value of theextraBottomBlockChancerecord component.- Returns:
- the value of the
extraBottomBlockChancerecord component
-
verticalRange
public int verticalRange()Returns the value of theverticalRangerecord component.- Returns:
- the value of the
verticalRangerecord component
-
vegetationChance
public float vegetationChance()Returns the value of thevegetationChancerecord component.- Returns:
- the value of the
vegetationChancerecord component
-
xzRadius
Returns the value of thexzRadiusrecord component.- Returns:
- the value of the
xzRadiusrecord component
-
extraEdgeColumnChance
public float extraEdgeColumnChance()Returns the value of theextraEdgeColumnChancerecord component.- Returns:
- the value of the
extraEdgeColumnChancerecord component
-