Verwendungen von Klasse
net.risingworld.api.objects.Player
Package
Beschreibung
-
Verwendungen von Player in net.risingworld.api
Modifizierer und TypMethodeBeschreibungstatic Player
Server.findNearestPlayer
(Vector3f position) Gets the player who has the shortest distance to a particular world position.static Player[]
Server.getAllPlayers()
Gets a new array containing all players that are currently connected to the server.static Player
Server.getPlayer
(int playerid) Gets a player object representing the player with the provided playerid.static Player
Server.getPlayerByDbID
(int playerDbID) Gets a player object representing the player with the provided unique database ID.static Player
Server.getPlayerByName
(String playername) Gets a player object representing the player with the provided playername.static Player
Server.getPlayerByUID
(String playerUID) Gets a player object representing the player with the provided unique ID (for Steam users, this is the SteamID64).Modifizierer und TypMethodeBeschreibungstatic void
Internals.addUIElementToPlayer
(Player player, UIElement element, String target) Same asaddUIElement(net.risingworld.api.ui.UIElement)
, but allows you to set an arbitrary UI target (defined by the UI element path).static void
Internals.forceSyncAsset
(Player player, Asset asset) Forces the game to sync a particular asset with a player.static void
Internals.overwriteInnerUIStyle
(Player player, UIElement element, String innerPath, Style style) Overwrites the style of a nested element of a UI element.static void
Internals.overwriteUIStyle
(Player player, String path, Style style) Overwrites the style of any UI element on the screen (this also applies to built-in UI elements of the game)static void
Internals.setSceneElementActive
(Player player, String path, boolean active) Sets any element in the scene active/inactive.static void
Internals.setSceneElementLocalPosition
(Player player, String path, float x, float y, float z) Changes the local position of an element in the scene.static void
Internals.setSceneElementLocalRotation
(Player player, String path, float rx, float ry, float rz, float rw) Changes the local rotation of an element in the scene.static void
Internals.setSceneElementLocalScale
(Player player, String path, float x, float y, float z) Changes the local scale of an element in the scene.static void
Internals.setSceneElementParent
(Player player, String path, String parent) Changes the parent for an element in the scene. -
Verwendungen von Player in net.risingworld.api.events.npc
Modifizierer und TypMethodeBeschreibungNpcAddClothesEvent.getRelatedPlayer()
Gets the player who is involved in this action (or null if no player is involved).NpcAddSaddleBagEvent.getRelatedPlayer()
Gets the player who wants to put the saddle bag on the mount.NpcAddSaddleEvent.getRelatedPlayer()
Gets the player who wants to put the saddle on the mount.NpcRemoveClothesEvent.getRelatedPlayer()
Gets the player who is involved in this action (or null if no player is involved).NpcRemoveSaddleBagEvent.getRelatedPlayer()
Gets the player who wants to remove the saddle from the mount.NpcRemoveSaddleEvent.getRelatedPlayer()
Gets the player who wants to remove the saddle from the mount.NpcSpawnEvent.getRelatedPlayer()
Returns the related player.NpcTransformEvent.getRelatedPlayer()
Gets the player who was involved in this transformation. -
Verwendungen von Player in net.risingworld.api.events.player
Modifizierer und TypMethodeBeschreibungPlayerEvent.getPlayer()
Gets the player object (the player who triggered this event).PlayerHitPlayerEvent.getTargetPlayer()
Gets the target player, i.e the player who was hit.PlayerPlayerInteractionEvent.getTargetPlayer()
Gets the target player (i.e the other player the player interacts with).PlayerPrivateMessageEvent.getTargetPlayer()
Gets the recipient of the message. -
Verwendungen von Player in net.risingworld.api.events.world
Modifizierer und TypMethodeBeschreibungExplosionEvent.getRelatedPlayer()
Gets the player who is responsible for this explosion. -
Verwendungen von Player in net.risingworld.api.objects
Modifizierer und TypMethodeBeschreibungNpc.getHostilePlayer()
Gets the "hostile player".Npc.getNearestPlayer()
Gets the nearest player, or more precisely, the player which is considered the "nearest player" by the npc.Vehicle.getPassenger
(int seat) Gets the passenger on a particular seat.Player[]
Vehicle.getPassengers()
Gets an array of all passengers, or more precisely, an array containing the occupant of each seat.WorldItem.getRelatedPlayer()
This function returns the player that is related to this item.Modifizierer und TypMethodeBeschreibungArea.getPlayerPermission
(Player player) Gets the permission of a player in this area.void
Area.removePlayerPermission
(Player player) Removes a player from the area/permissions.void
Area.setPlayerPermission
(Player player, String areaPermission) Sets the area permission for a player.Modifizierer und TypMethodeBeschreibungvoid
Npc.getPlayerInLineOfSight
(float distance, Callback<Player> callback) Gets the player in line-of-sight of the player (i.e the player animal is currently looking at). -
Verwendungen von Player in net.risingworld.api.sounds
-
Verwendungen von Player in net.risingworld.api.ui
Modifizierer und TypMethodeBeschreibungvoid
UITextField.getCurrentText
(Player player, Callback<String> callback) Gets the current text of the textfield. -
Verwendungen von Player in net.risingworld.api.utils
Modifizierer und TypMethodeBeschreibungstatic Vector3f
Utils.VectorUtils.getXYZInFrontOfPlayer
(Player player, float distance) Gets the position in front of the player (with the given distance to the player).static Vector3f
Utils.VectorUtils.getXYZInFrontOfPlayer
(Player player, float distance, Vector3f storeTo) Gets the position in front of the player (with the given distance to the player).static Vector3f
Utils.VectorUtils.getXZInFrontOfPlayer
(Player player, float distance) static Vector3f
Utils.VectorUtils.getXZInFrontOfPlayer
(Player player, float distance, Vector3f storeTo) -
Verwendungen von Player in net.risingworld.api.worldelements
Modifizierer und TypMethodeBeschreibungvoid
GameObject.attachTo
(Player player, GameObject.AttachTarget target) Attaches the game object to a player.void
Prefab.readLocalPosition
(String path, Player player, Callback<Vector3f> callback) Reads the actual local position of the prefab (or a child of this prefab, specified by the path) from a particular player.void
Prefab.readLocalRotation
(String path, Player player, Callback<Quaternion> callback) Reads the actual local rotation of the prefab (or a child of this prefab, specified by the path) from a particular player.void
GameObject.readWorldPosition
(Player player, Callback<Vector3f> callback) Reads the actual world position of the game object from a particular player.void
Prefab.readWorldPosition
(String path, Player player, Callback<Vector3f> callback) Reads the actual world position of the prefab (or a child of this prefab, specified by the path) from a particular player.void
GameObject.readWorldRotation
(Player player, Callback<Quaternion> callback) Reads the actual world rotation of the game object from a particular player.void
Prefab.readWorldRotation
(String path, Player player, Callback<Quaternion> callback) Reads the actual world rotation of the prefab (or a child of this prefab, specified by the path) from a particular player.