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:
Mads Boddum
2015-09-26 03:37:22 +02:00
parent cc10ce2b31
commit 4eea2c4e4f
-30
View File
@@ -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();
}
}