Record Class DrawCommand.Poly
java.lang.Object
java.lang.Record
com.botwithus.bot.api.draw.DrawCommand.Poly
- All Implemented Interfaces:
DrawCommand, DrawCommand.Primitive
- Enclosing interface:
DrawCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface DrawCommand
DrawCommand.Area, DrawCommand.ComponentTarget, DrawCommand.Ellipse, DrawCommand.Entity, DrawCommand.Highlight, DrawCommand.Line, DrawCommand.Poly, DrawCommand.Primitive, DrawCommand.Rect, DrawCommand.Text, DrawCommand.Tile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.kind()The primitive this command draws.points()Returns the value of thepointsrecord component.space()Returns the value of thespacerecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Poly
Creates an instance of aPolyrecord class.- Parameters:
key- the value for thekeyrecord componentspace- the value for thespacerecord componentstyle- the value for thestylerecord componentpoints- the value for thepointsrecord component
-
-
Method Details
-
kind
Description copied from interface:DrawCommandThe primitive this command draws.- Specified by:
kindin interfaceDrawCommand
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceDrawCommand- Returns:
- the value of the
keyrecord component
-
space
Returns the value of thespacerecord component.- Specified by:
spacein interfaceDrawCommand- Returns:
- the value of the
spacerecord component
-
style
Returns the value of thestylerecord component.- Specified by:
stylein interfaceDrawCommand- Returns:
- the value of the
stylerecord component
-
points
-