mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 05:19:41 +00:00
Attempt to Add Git Submodule
This commit is contained in:
1 parent
8bedd7e7ef
commit
38b1121cae
3 files changed
+40
No files matched your search
@@ -0,0 +1,3 @@
|
||||
[submodule "src/api"]
|
||||
path = src/api
|
||||
url = https://github.com/KAMKEEL/CustomNPC-Plus-API.git
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Kamron Vaswani
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,16 @@
|
||||
# CustomNPC-Plus-API
|
||||
External API for scripting and to allow mods/plugins to hook into CustomNPC+
|
||||
|
||||
## How to use in a Mod
|
||||
Basically just download the api code and include it in your mod.
|
||||
|
||||
In your mod you can check if CustomNPC+ is installed with `NpcAPI.IsAvailable()`
|
||||
|
||||
To use the events, register your events with `NpcAPI.Instance().events().register(youreventclass)`
|
||||
|
||||
## Extra
|
||||
JavaDocs: https://kamkeel.github.io/CustomNPC-Plus/
|
||||
|
||||
[](https://discord.gg/pQqRTvFeJ5)
|
||||
|
||||
[](https://www.curseforge.com/minecraft/mc-mods/customnpc-plus)
|
||||
Reference in new issue
Block a user