mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-06 21:13:37 -04:00
Removed all SUI-related methods from the IntentFactory since they don't make anything easier and don't fit in with the other methods in the class
This commit is contained in:
@@ -121,34 +121,4 @@ public final class IntentFactory {
|
||||
new PersistentMessageIntent(receiver, mail, receiver.getOwner().getGalaxyName()).broadcast();
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the provided {@link SuiWindow} to the player.
|
||||
* <br><br>
|
||||
* This is the same as calling suiWindow.display(player)
|
||||
* @param player Player to be shown the {@link SuiWindow}.
|
||||
* @param suiWindow {@link SuiWindow} to be shown
|
||||
*/
|
||||
public void showSuiWindow(Player player, SuiWindow suiWindow) {
|
||||
suiWindow.display(player);
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes a currently opened window on the client with the id of the SUI Window.
|
||||
* <br><br>
|
||||
* This is the same as calling suiWindow.close(player);
|
||||
* @param player Player that has the window to be closed
|
||||
* @param suiWindow {@link SuiWindow} to be closed
|
||||
*/
|
||||
public void closeSuiWindow(Player player, SuiWindow suiWindow) {
|
||||
suiWindow.close(player);
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes a currently opened window on the client with the id of the SUI Window
|
||||
* @param player Player that has the window to be closed
|
||||
* @param windowId Window id of the {@link SuiWindow} to close
|
||||
*/
|
||||
public void closeSuiWindow(Player player, int windowId) {
|
||||
new SuiWindowIntent(player, null, windowId, SuiWindowIntent.SuiWindowEvent.CLOSE).broadcast();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user