Hitbox::contains()
Checks if the hitbox contains a point.
Syntax
Java
.contains(x, y)
Parameters
| Name | Data Type | Description |
|---|---|---|
| x | double | The x-coordinate of the point. |
| y | double | The y-coordinate of the point. |
Return
boolean

Checks if the hitbox contains a point.
.contains(x, y)
| Name | Data Type | Description |
|---|---|---|
| x | double | The x-coordinate of the point. |
| y | double | The y-coordinate of the point. |
boolean