Class PlayerElementCollisionEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerElementCollisionEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the world element.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Gets whether or not the player is currently "touching" (colliding with) the element.Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getGameObject
Deprecated, for removal: This API element is subject to removal in a future version.Gets the world element.- Returns:
- the world element.
-
isColliding
public boolean isColliding()Deprecated, for removal: This API element is subject to removal in a future version.Gets whether or not the player is currently "touching" (colliding with) the element.- Returns:
- true if the player collides with the element (start collision), false if the player is no longer colliding with the element (stop collision). False is only returned if the player collided with the element previously.
-
PlayerGameObjectHitEvent
instead!