Uses of Class
net.risingworld.api.objects.Player
Packages that use Player
Package
Description
-
Uses of Player in net.risingworld.api
Methods in net.risingworld.api that return PlayerModifier and TypeMethodDescriptionstatic PlayerServer.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 PlayerServer.getPlayer(int playerid) Gets a player object representing the player with the provided playerid.static PlayerServer.getPlayerByDbID(int playerDbID) Gets a player object representing the player with the provided unique database ID.static PlayerServer.getPlayerByName(String playername) Gets a player object representing the player with the provided playername.static PlayerServer.getPlayerByUID(String playerUID) Gets a player object representing the player with the provided unique ID (for Steam users, this is the SteamID64).Methods in net.risingworld.api with parameters of type PlayerModifier and TypeMethodDescriptionstatic voidInternals.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 voidInternals.forceSyncAsset(Player player, Asset asset) Forces the game to sync a particular asset with a player.static voidInternals.overwriteInnerUIStyle(Player player, UIElement element, String innerPath, Style style) Overwrites the style of a nested element of a UI element.static voidInternals.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 voidInternals.setSceneElementActive(Player player, String path, boolean active) Sets any element in the scene active/inactive.static voidInternals.setSceneElementLocalPosition(Player player, String path, float x, float y, float z) Changes the local position of an element in the scene.static voidInternals.setSceneElementLocalRotation(Player player, String path, float rx, float ry, float rz, float rw) Changes the local rotation of an element in the scene.static voidInternals.setSceneElementLocalScale(Player player, String path, float x, float y, float z) Changes the local scale of an element in the scene.static voidInternals.setSceneElementParent(Player player, String path, String parent) Changes the parent for an element in the scene. -
Uses of Player in net.risingworld.api.events.npc
Methods in net.risingworld.api.events.npc that return PlayerModifier and TypeMethodDescriptionNpcAddClothesEvent.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. -
Uses of Player in net.risingworld.api.events.player
Methods in net.risingworld.api.events.player that return PlayerModifier and TypeMethodDescriptionPlayerEvent.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. -
Uses of Player in net.risingworld.api.events.world
Methods in net.risingworld.api.events.world that return PlayerModifier and TypeMethodDescriptionExplosionEvent.getRelatedPlayer()Gets the player who is responsible for this explosion. -
Uses of Player in net.risingworld.api.objects
Methods in net.risingworld.api.objects that return PlayerModifier and TypeMethodDescriptionNpc.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.Methods in net.risingworld.api.objects with parameters of type PlayerModifier and TypeMethodDescriptionArea.getPlayerPermission(Player player) Gets the permission of a player in this area.voidArea.removePlayerPermission(Player player) Removes a player from the area/permissions.voidArea.setPlayerPermission(Player player, String areaPermission) Sets the area permission for a player.Method parameters in net.risingworld.api.objects with type arguments of type PlayerModifier and TypeMethodDescriptionvoidNpc.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). -
Uses of Player in net.risingworld.api.sounds
Methods in net.risingworld.api.sounds that return Player -
Uses of Player in net.risingworld.api.ui
Methods in net.risingworld.api.ui with parameters of type PlayerModifier and TypeMethodDescriptionvoidUITextField.getCurrentText(Player player, Callback<String> callback) Gets the current text of the textfield. -
Uses of Player in net.risingworld.api.utils
Methods in net.risingworld.api.utils with parameters of type PlayerModifier and TypeMethodDescriptionstatic Vector3fUtils.VectorUtils.getXYZInFrontOfPlayer(Player player, float distance) Gets the position in front of the player (with the given distance to the player).static Vector3fUtils.VectorUtils.getXYZInFrontOfPlayer(Player player, float distance, Vector3f storeTo) Gets the position in front of the player (with the given distance to the player).static Vector3fUtils.VectorUtils.getXZInFrontOfPlayer(Player player, float distance) static Vector3fUtils.VectorUtils.getXZInFrontOfPlayer(Player player, float distance, Vector3f storeTo) -
Uses of Player in net.risingworld.api.worldelements
Methods in net.risingworld.api.worldelements with parameters of type PlayerModifier and TypeMethodDescriptionvoidGameObject.attachTo(Player player, GameObject.AttachTarget target) Attaches the game object to a player.voidPrefab.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.voidPrefab.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.voidGameObject.readWorldPosition(Player player, Callback<Vector3f> callback) Reads the actual world position of the game object from a particular player.voidPrefab.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.voidGameObject.readWorldRotation(Player player, Callback<Quaternion> callback) Reads the actual world rotation of the game object from a particular player.voidPrefab.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.