mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 16:34:47 +00:00
Add isPost to Profile Events
This commit is contained in:
1 parent
7d81fc13b5
commit
07bef8c46c
1 file changed
+20
-6
@@ -299,19 +299,33 @@ public interface IPlayerEvent extends ICustomNPCsEvent {
|
||||
@Cancelable
|
||||
interface ProfileEvent extends IPlayerEvent {
|
||||
|
||||
/**
|
||||
* @return IProfile Object of the Operation
|
||||
*/
|
||||
IProfile getProfile();
|
||||
|
||||
/**
|
||||
* @return Slot ID in question
|
||||
*/
|
||||
int getSlot();
|
||||
|
||||
/**
|
||||
* @return returns true if it occurs after the operation (not cancellable)
|
||||
*/
|
||||
boolean isPost();
|
||||
|
||||
@Cancelable
|
||||
interface Changed extends ProfileEvent {
|
||||
/**
|
||||
* @return The previous slot before the switch
|
||||
*/
|
||||
int getPrevSlot();
|
||||
}
|
||||
|
||||
interface Create extends ProfileEvent {
|
||||
@Cancelable
|
||||
interface Create extends ProfileEvent {}
|
||||
|
||||
}
|
||||
|
||||
interface Removed extends ProfileEvent {
|
||||
|
||||
}
|
||||
@Cancelable
|
||||
interface Removed extends ProfileEvent {}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user