Uses of Interface
net.risingworld.api.callbacks.Callback
Package
Description
-
Uses of Callback in net.risingworld.api.objects
Modifier and TypeMethodDescriptionvoid
Player.connectToOtherServer
(String target, String password, Callback<Boolean> callback) Connects the client to another multiplayer server.void
Player.createScreenshot
(float sizeFactor, float quality, boolean includeUI, Callback<BufferedImage> callback) Creates a screenshot of the player screen and converts it into a BufferedImage.void
Player.createScreenshot
(int width, int height, float quality, boolean includeUI, Callback<BufferedImage> callback) Creates a screenshot of the player screen with the desired resolution and converts it into a BufferedImage.void
Player.createScreenshot
(Vector3f position, Vector3f direction, int width, int height, float quality, boolean includeUI, Callback<BufferedImage> callback) Creates a screenshot from an arbitrary world position with the desired resolution and converts it into a BufferedImage.void
Player.getAreaInLineOfSight
(float distance, Callback<Area> callback) Gets the area in line-of-sight of the player (i.e the area the player is currently looking at).void
Player.getAreaSelectionData
(Callback<Area> callback) Gets the currently selected area.void
Player.getNpcInLineOfSight
(float distance, Callback<Npc> callback) Gets the npc in line-of-sight of the player (i.e the npc the player is currently looking at).void
Player.getObjectElementInLineOfSight
(float distance, Callback<ObjectElement> callback) Gets the object element in line-of-sight of the player (i.e the object element the player is currently looking at).void
Gets a setting from the client (a setting from his config.properties file).void
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).void
Player.raycast
(float distance, int layerMask, boolean includeTriggers, Callback<RaycastResult> callback) Performs a raycast from the player view position to the player view direction.void
Player.raycast
(int layerMask, Callback<RaycastResult> callback) Performs a raycast from the player view position to the player view direction.void
Player.raycast
(Vector3f direction, float distance, int layerMask, boolean includeTriggers, Callback<RaycastResult> callback) Performs a raycast from the player view position to the provided direction.void
Player.raycastFromScreenPosition
(float x, float y, boolean relative, float distance, int layerMask, boolean includeTriggers, Callback<RaycastResult> callback) Performs a raycast from the screen xy position.void
Player.raycastFromWorldPosition
(Vector3f position, Vector3f direction, float distance, int layerMask, boolean includeTriggers, Callback<RaycastResult> callback) Performs a raycast from a world position.void
Player.showColorPicker
(String title, int rgb, Callback<Integer> callback) Shows a color picker dialog to the player.void
Player.showContextMenu
(String[] entries, Callback<String> callback) Shows a context menu with the given entries.void
Player.showFontDialog
(String title, Font selectedFont, Callback<Font> callback) Shows a font selection dialog to the player.void
Shows a text input message box to the player.void
Player.showMessageBox
(MessageBoxButtons buttons, String title, String message, int timeout, Callback<Integer> callback) Shows a default message box to the player.void
Player.showRadialMenu
(TextureAsset[] icons, String[] descriptions, String[] overrideTexts, boolean closeOnSelect, Callback<Integer> callback) Shows a "radial menu" or "pie menu" to the player. -
Uses of Callback in net.risingworld.api.ui
Modifier and TypeMethodDescriptionvoid
UITextField.getCurrentText
(Player player, Callback<String> callback) Gets the current text of the textfield. -
Uses of Callback in net.risingworld.api.worldelements
Modifier and TypeMethodDescriptionvoid
GameObject.moveToLocalPosition
(float x, float y, float z, float speed, Callback<Consumer<Vector3f>> callback) Smoothly moves this object to a target local position.void
GameObject.moveToLocalPosition
(Vector3f position, float speed, Callback<Consumer<Vector3f>> callback) Smoothly moves this object to a target local position.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.