Add isPost to Profile Events

This commit is contained in:
Kam committed 2025-03-11 17:16:33 -04:00
1 parent 7d81fc13b5
commit 07bef8c46c
1 file changed
+20 -6
+20 -6
View File
@@ -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 {}
}
}