Package me.despical.kotl.util
Record Class CuboidSelector.Selection
java.lang.Object
java.lang.Record
me.despical.kotl.util.CuboidSelector.Selection
- Enclosing class:
CuboidSelector
public static record CuboidSelector.Selection(org.bukkit.Location firstPos, org.bukkit.Location secondPos)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSelection(org.bukkit.Location firstPos, org.bukkit.Location secondPos) Creates an instance of aSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.bukkit.LocationfirstPos()Returns the value of thefirstPosrecord component.final inthashCode()Returns a hash code value for this object.org.bukkit.LocationReturns the value of thesecondPosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Selection
public Selection(org.bukkit.Location firstPos, org.bukkit.Location secondPos) Creates an instance of aSelectionrecord class.- Parameters:
firstPos- the value for thefirstPosrecord componentsecondPos- the value for thesecondPosrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
firstPos
public org.bukkit.Location firstPos()Returns the value of thefirstPosrecord component.- Returns:
- the value of the
firstPosrecord component
-
secondPos
public org.bukkit.Location secondPos()Returns the value of thesecondPosrecord component.- Returns:
- the value of the
secondPosrecord component
-