RAPI
The RAPI class provides convenient methods for various actions, including adding new items and showing the cursor, making modding tasks easier and more accessible.
Checks if the game is running on a dedicated server.
Returns true if the game is running on a dedicated server, false otherwise.
Checks if the current active scene is the main menu.
Returns true if the current active scene is the main menu, false otherwise.
Checks if the current active scene is the main game scene.
Returns true if the current active scene is the main game scene, false otherwise.
Gets the username associated with a SteamID.
Returns the player's username.
Toggle the mouse cursor with high priority (mostly used by the mod loader).
Toggle the mouse cursor.
Gets the local player object from the network.
Returns the local player object.
Broadcasts a chat message to all players.
Gives a specified amount of items to the local player.
Allows an item to be placed on a specific block quad type.
Disallows an item from being placed on a specific block quad type.
Registers a new item.
Unregisters an item, removing it from inventories and world.
Sets the in-hand prefab object for a specific item.
Sends a network message to all players.
Listens for network messages on a specific network channel.
Returns the received network message.
Last updated