Added an interface for the ScriptedCommandEvent

This commit is contained in:
Goodbird committed 2024-01-20 11:43:57 +03:00
1 parent e3980ce217
commit f96bb398ff
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);
int getId();
String[] getArgs();
}
}