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
ConstructorsModifierConstructorDescriptionprotectedErosionPreset(int erosionFaces, int erosionRecursions, int fillFaces, int fillRecursions) Creates an instance of aErosionPresetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.intReturns the value of theerosionFacesrecord component.intReturns the value of theerosionRecursionsrecord component.intReturns the value of thefillFacesrecord component.intReturns the value of thefillRecursionsrecord component.intReturns the erosion facesintReturns the erosion recursionintReturns the fill facesintReturns the fill recursioninthashCode()Returns a hash code value for this object.final StringtoString()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 aErosionPresetrecord class.- Parameters:
erosionFaces- the value for theerosionFacesrecord componenterosionRecursions- the value for theerosionRecursionsrecord componentfillFaces- the value for thefillFacesrecord componentfillRecursions- the value for thefillRecursionsrecord 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 theerosionFacesrecord component.- Returns:
- the value of the
erosionFacesrecord component
-
erosionRecursions
public int erosionRecursions()Returns the value of theerosionRecursionsrecord component.- Returns:
- the value of the
erosionRecursionsrecord component
-
fillFaces
public int fillFaces()Returns the value of thefillFacesrecord component.- Returns:
- the value of the
fillFacesrecord component
-
fillRecursions
public int fillRecursions()Returns the value of thefillRecursionsrecord component.- Returns:
- the value of the
fillRecursionsrecord component
-