mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 00:14:44 +00:00
Add the Essential APIs
This commit is contained in:
1 parent
f91e17ab3e
commit
5cb3a5beef
2 files changed
+158
-104
No files matched your search
@@ -0,0 +1,38 @@
|
||||
package noppes.npcs.api;
|
||||
|
||||
/**
|
||||
* MC shadow of the INbtList interface.
|
||||
* Shadows the platform-api version at compile time for mc1710.
|
||||
*/
|
||||
public interface INbtList {
|
||||
|
||||
int size();
|
||||
|
||||
INbt getCompound(int index);
|
||||
|
||||
String getString(int index);
|
||||
|
||||
int getInt(int index);
|
||||
|
||||
double getDouble(int index);
|
||||
|
||||
float getFloat(int index);
|
||||
|
||||
int[] getIntArray(int index);
|
||||
|
||||
int getElementType();
|
||||
|
||||
// --- Mutators ---
|
||||
|
||||
void addCompound(INbt compound);
|
||||
|
||||
void addString(String value);
|
||||
|
||||
void addInt(int value);
|
||||
|
||||
void addDouble(double value);
|
||||
|
||||
void remove(int index);
|
||||
|
||||
Object getMCTagList();
|
||||
}
|
||||
Reference in new issue
Block a user