Record Class ErodeBrush.ErosionPreset
java.lang.Object
java.lang.Record
com.thevoxelbox.voxelsniper.brush.type.ErodeBrush.ErosionPreset
- All Implemented Interfaces:
Serializable
- Enclosing class:
ErodeBrush
protected static record ErodeBrush.ErosionPreset(int erosionFaces, int erosionRecursions, int fillFaces, int fillRecursions)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
ErosionPreset
(int erosionFaces, int erosionRecursions, int fillFaces, int fillRecursions) Creates an instance of aErosionPreset
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theerosionFaces
record component.int
Returns the value of theerosionRecursions
record component.int
Returns the value of thefillFaces
record component.int
Returns the value of thefillRecursions
record component.int
Returns the erosion facesint
Returns the erosion recursionint
Returns the fill facesint
Returns the fill recursionint
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ErosionPreset
protected ErosionPreset(int erosionFaces, int erosionRecursions, int fillFaces, int fillRecursions) Creates an instance of aErosionPreset
record class.- Parameters:
erosionFaces
- the value for theerosionFaces
record componenterosionRecursions
- the value for theerosionRecursions
record componentfillFaces
- the value for thefillFaces
record componentfillRecursions
- the value for thefillRecursions
record component
-
-
Method Details
-
hashCode
public 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 '=='. -
getErosionFaces
public int getErosionFaces()Returns the erosion faces -
getErosionRecursions
public int getErosionRecursions()Returns the erosion recursion -
getFillFaces
public int getFillFaces()Returns the fill faces -
getFillRecursions
public int getFillRecursions()Returns the fill recursion -
getInverted
-
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. -
erosionFaces
public int erosionFaces()Returns the value of theerosionFaces
record component.- Returns:
- the value of the
erosionFaces
record component
-
erosionRecursions
public int erosionRecursions()Returns the value of theerosionRecursions
record component.- Returns:
- the value of the
erosionRecursions
record component
-
fillFaces
public int fillFaces()Returns the value of thefillFaces
record component.- Returns:
- the value of the
fillFaces
record component
-
fillRecursions
public int fillRecursions()Returns the value of thefillRecursions
record component.- Returns:
- the value of the
fillRecursions
record component
-