Record Class CircleBrush
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.command.tool.brush.CircleBrush
- All Implemented Interfaces:
Brush
-
Constructor Summary
ConstructorsConstructorDescriptionCircleBrush
(boolean filled) Creates an instance of aCircleBrush
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(EditSession editSession, BlockVector3 position, Pattern pattern, double size) Build the object.final boolean
Indicates whether some other object is "equal to" this one.boolean
filled()
Returns the value of thefilled
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CircleBrush
public CircleBrush(boolean filled) Creates an instance of aCircleBrush
record class.- Parameters:
filled
- the value for thefilled
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. All components in this record class are compared with '=='. -
filled
public boolean filled()Returns the value of thefilled
record component.- Returns:
- the value of the
filled
record component
-