Klasse PlayerGameObjectHitEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerGameObjectHitEvent
Called when a player hits a game object.
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the game object that was hit by the player.Gets the normal, i.e the normal of the surface that was hit (the direction in which the surface points).Gets the coordinates where the element was hit exactly.Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getGameObject
Gets the game object that was hit by the player.- Gibt zurück:
- the game object.
-
getHitPosition
Gets the coordinates where the element was hit exactly.- Gibt zurück:
- world coordinates where the element was hit.
-
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
.
-