Klasse PlayerGameObjectHitEvent

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

public final class PlayerGameObjectHitEvent extends PlayerEvent
Called when a player hits a game object.
  • Methodendetails

    • getGameObject

      public GameObject getGameObject()
      Gets the game object that was hit by the player.
      Gibt zurück:
      the game object.
    • getHitPosition

      public Vector3f getHitPosition()
      Gets the coordinates where the element was hit exactly.
      Gibt zurück:
      world coordinates where the element was hit.
    • getHitNormal

      public Vector3f getHitNormal()
      Gets the normal, i.e the normal of the surface that was hit (the direction in which the surface points).
      Gibt zurück:
      the collision normal as a normalized Vector3f.