mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 10:44:47 +00:00
Added an interface for the ScriptedCommandEvent
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user