Record Class TaintedRootsConfig
java.lang.Object
java.lang.Record
com.idark.valoria.registries.levelgen.configurations.TaintedRootsConfig
- All Implemented Interfaces:
net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
public record TaintedRootsConfig(int spreadWidth, int spreadHeight)
extends Record
implements net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
-
Field Summary
Fields inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
NONE
-
Constructor Summary
ConstructorDescriptionTaintedRootsConfig
(int spreadWidth, int spreadHeight) Creates an instance of aTaintedRootsConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thespreadHeight
record component.int
Returns the value of thespreadWidth
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.feature.configurations.FeatureConfiguration
getFeatures
-
Field Details
-
CODEC
-
-
Constructor Details
-
TaintedRootsConfig
public TaintedRootsConfig(int spreadWidth, int spreadHeight) Creates an instance of aTaintedRootsConfig
record class.- Parameters:
spreadWidth
- the value for thespreadWidth
record componentspreadHeight
- the value for thespreadHeight
record component
-
-
Method Details
-
spreadWidth
public int spreadWidth()Returns the value of thespreadWidth
record component.- Returns:
- the value of the
spreadWidth
record component
-
spreadHeight
public int spreadHeight()Returns the value of thespreadHeight
record component.- Returns:
- the value of the
spreadHeight
record component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared with '=='.
-