Class PlayerElementCollisionEvent

java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerElementCollisionEvent

@Deprecated(forRemoval=true) public final class PlayerElementCollisionEvent extends PlayerEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Do not use! Use PlayerGameObjectHitEvent instead!
  • Method Details

    • getGameObject

      public GameObject 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.