Merge pull request #2 from Goodbird-git/scripted-commands

Implemented scripted commands
This commit is contained in:
Kam authored and GitHub committed 2024-01-22 21:54:50 -05:00
commit f5bf161c47
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();
}
}