Record Class AutoQuery
java.lang.Object
java.lang.Record
com.plotsquared.core.services.plots.AutoQuery
- Record Components:
player- Player to claim forstartId- Plot ID to start searching fromsizeX- Number of plots along the X axissizeZ- Number of plots along the Z axisplotArea- Plot area to search in
public record AutoQuery(@NonNull PlotPlayer<?> player, @Nullable PlotId startId, int sizeX, int sizeZ, @NonNull PlotArea plotArea)
extends Record
Crate a new auto query
-
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.player()Get the player that the plots are meant forplotArea()Get the plot area to search inintsizeX()Get the number of plots along the X axisintsizeZ()Get the number of plots along the Z axisstartId()Get the plot ID to start searching fromfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
player
Get the player that the plots are meant for- Returns:
- Player
-
startId
Get the plot ID to start searching from- Returns:
- Start ID
-
sizeX
Get the number of plots along the X axis- Returns:
- Number of plots along the X axis
-
sizeZ
Get the number of plots along the Z axis- Returns:
- Number of plots along the Z axis
-
plotArea
Get the plot area to search in- Returns:
- Plot area
-
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
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 '=='.
-