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!
  • Field Summary

    Fields inherited from class net.risingworld.api.events.Event

    cancelled, pointer
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, 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

    Methods inherited from class net.risingworld.api.events.Event

    equals, hashCode, isValid

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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.