Record Class RockBrush
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.command.tool.brush.RockBrush
- All Implemented Interfaces:
Brush
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of theamplitude
record component.void
build
(EditSession editSession, BlockVector3 position, Pattern pattern, double size) Build the object.final boolean
Indicates whether some other object is "equal to" this one.double
Returns the value of thefrequency
record component.final int
hashCode()
Returns a hash code value for this object.radius()
Returns the value of theradius
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RockBrush
Creates an instance of aRockBrush
record class.- Parameters:
amplitude
- the value for theamplitude
record componentfrequency
- the value for thefrequency
record componentradius
- the value for theradius
record component
-
-
Method Details
-
build
public void build(EditSession editSession, BlockVector3 position, Pattern pattern, double size) throws MaxChangedBlocksException Description copied from interface:Brush
Build the object.- Specified by:
build
in interfaceBrush
- Parameters:
editSession
- theEditSession
position
- the positionpattern
- the patternsize
- the size of the brush- Throws:
MaxChangedBlocksException
- if the maximum block change limit is exceeded
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
amplitude
public double amplitude()Returns the value of theamplitude
record component.- Returns:
- the value of the
amplitude
record component
-
frequency
public double frequency()Returns the value of thefrequency
record component.- Returns:
- the value of the
frequency
record component
-
radius
Returns the value of theradius
record component.- Returns:
- the value of the
radius
record component
-