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 Details

    • ErosionPreset

      protected ErosionPreset(int erosionFaces, int erosionRecursions, int fillFaces, int fillRecursions)
      Creates an instance of a ErosionPreset record class.
      Parameters:
      erosionFaces - the value for the erosionFaces record component
      erosionRecursions - the value for the erosionRecursions record component
      fillFaces - the value for the fillFaces record component
      fillRecursions - the value for the fillRecursions 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public boolean equals(Object obj)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • 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

      public ErodeBrush.ErosionPreset getInverted()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • erosionFaces

      public int erosionFaces()
      Returns the value of the erosionFaces record component.
      Returns:
      the value of the erosionFaces record component
    • erosionRecursions

      public int erosionRecursions()
      Returns the value of the erosionRecursions record component.
      Returns:
      the value of the erosionRecursions record component
    • fillFaces

      public int fillFaces()
      Returns the value of the fillFaces record component.
      Returns:
      the value of the fillFaces record component
    • fillRecursions

      public int fillRecursions()
      Returns the value of the fillRecursions record component.
      Returns:
      the value of the fillRecursions record component