mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 18:54:54 +00:00
Merge pull request #2 from Goodbird-git/scripted-commands
Implemented scripted commands
This commit is contained in:
1 file changed
+15
@@ -2,6 +2,7 @@ package noppes.npcs.api.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.IWorld;
|
||||
import noppes.npcs.api.handler.data.INaturalSpawn;
|
||||
|
||||
public interface ICustomNPCsEvent {
|
||||
@@ -24,4 +25,18 @@ public interface ICustomNPCsEvent {
|
||||
|
||||
boolean airSpawnPassed();
|
||||
}
|
||||
|
||||
interface ScriptedCommandEvent extends ICustomNPCsEvent {
|
||||
IWorld getSenderWorld();
|
||||
|
||||
IPos getSenderPosition();
|
||||
|
||||
String getSenderName();
|
||||
|
||||
void setReplyMessage(String message);
|
||||
|
||||
String getId();
|
||||
|
||||
String[] getArgs();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user