Record Class PopulateSchem
java.lang.Object
java.lang.Record
com.fastasyncworldedit.core.command.tool.brush.PopulateSchem
- All Implemented Interfaces:
Brush
public record PopulateSchem(Mask mask, List<ClipboardHolder> clipboards, int rarity, boolean randomRotate)
extends Record
implements Brush
-
Constructor Summary
ConstructorDescriptionPopulateSchem
(Mask mask, List<ClipboardHolder> clipboards, int rarity, boolean randomRotate) Creates an instance of aPopulateSchem
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(EditSession editSession, BlockVector3 position, Pattern pattern, double size) Build the object.Returns the value of theclipboards
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.mask()
Returns the value of themask
record component.boolean
Returns the value of therandomRotate
record component.int
rarity()
Returns the value of therarity
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PopulateSchem
Creates an instance of aPopulateSchem
record class.- Parameters:
mask
- the value for themask
record componentclipboards
- the value for theclipboards
record componentrarity
- the value for therarity
record componentrandomRotate
- the value for therandomRotate
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 '=='. -
mask
Returns the value of themask
record component.- Returns:
- the value of the
mask
record component
-
clipboards
Returns the value of theclipboards
record component.- Returns:
- the value of the
clipboards
record component
-
rarity
public int rarity()Returns the value of therarity
record component.- Returns:
- the value of the
rarity
record component
-
randomRotate
public boolean randomRotate()Returns the value of therandomRotate
record component.- Returns:
- the value of the
randomRotate
record component
-