Package net.risingworld.api.utils
Class AreaSelectionResult
java.lang.Object
net.risingworld.api.utils.AreaSelectionResult
Represents the currently selected area when using the selection tool. See
Player.enableAreaSelectionTool(boolean)
and Player.getAreaSelectionData(net.risingworld.api.callbacks.Callback)-
Method Summary
Modifier and TypeMethodDescriptionGets the end position.Gets the start position.booleanChecks if the player has already set an end position for the area.booleanChecks if the player has already set a start position for the area.toString()Gets a String representation of this AreaSelectionResult.
-
Method Details
-
getStartPosition
Gets the start position. If no start position was set, null is returned.- Returns:
- the selected start position, or null if no start position was set.
-
isStartPositionSet
public boolean isStartPositionSet()Checks if the player has already set a start position for the area.- Returns:
- true if a start position was set, false if not.
-
getEndPosition
Gets the end position. If no end position was set, null is returned.- Returns:
- the selected end position, or null if no end position was set.
-
isEndPositionSet
public boolean isEndPositionSet()Checks if the player has already set an end position for the area.- Returns:
- true if an end position was set, false if not.
-
toString
Gets a String representation of this AreaSelectionResult.
-