mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 18:54:54 +00:00
IParty API and Party Events
This commit is contained in:
1 parent
08979f1392
commit
cf6f122f9b
2 files changed
+166
No files matched your search
@@ -0,0 +1,49 @@
|
||||
package noppes.npcs.api.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Cancelable;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.api.handler.data.IParty;
|
||||
import noppes.npcs.api.handler.data.IQuest;
|
||||
import noppes.npcs.api.item.IItemStack;
|
||||
|
||||
public interface IPartyEvent {
|
||||
|
||||
IParty getParty();
|
||||
|
||||
IQuest getQuest();
|
||||
|
||||
interface PartyQuestCompletedEvent extends IPartyEvent {
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
interface PartyQuestSetEvent extends IPartyEvent {
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
interface PartyQuestTurnedInEvent extends IPartyEvent { }
|
||||
|
||||
@Cancelable
|
||||
interface PartyInviteEvent extends IPartyEvent {
|
||||
|
||||
IPlayer getPlayer();
|
||||
|
||||
String getPlayerName();
|
||||
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
interface PartyKickEvent extends IPartyEvent {
|
||||
IPlayer getPlayer();
|
||||
|
||||
String getPlayerName();
|
||||
}
|
||||
|
||||
interface PartyLeaveEvent extends IPartyEvent {
|
||||
IPlayer getPlayer();
|
||||
|
||||
String getPlayerName();
|
||||
}
|
||||
|
||||
interface PartyDisbandEvent extends IPartyEvent {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user