mirror of
https://gitlab.com/2009scape/contributor-wiki.git
synced 2026-08-01 14:19:13 -06:00
Create ContentAPI
This commit is contained in:
parent
bc605eb827
commit
c1a43bcbe9
1 changed files with 13 additions and 0 deletions
13
ContentAPI.md
Normal file
13
ContentAPI.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
The ContentAPI is a consolidated central location that provides every method you'll need to implement ***almost*** anything.
|
||||
|
||||
It is located at `Server/src/main/kotlin/api/ContentAPI.kt` ([View In Browser](https://gitlab.com/2009scape/2009scape/-/blob/master/Server/src/main/kotlin/api/ContentAPI.kt))
|
||||
|
||||
To use methods in the ContentAPI, you must add the import to whatever kotlin file you are working with if it doesn't already have it:
|
||||
|
||||
```
|
||||
import api.*
|
||||
```
|
||||
|
||||
All of the methods are documented and globally accessible. You can use the methods by simply typing their name, e.g. `sendMessage(player, "Bababooey")`.
|
||||
|
||||
It's very important that you read the documentation for the methods you use and attempt to understand them.
|
||||
Loading…
Add table
Add a link
Reference in a new issue