public class GuildOverviewMenu extends java.lang.Object implements WauzInventory
GuildApplicationMenu| Constructor and Description |
|---|
GuildOverviewMenu() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WauzMode> |
getGamemodes() |
private static org.bukkit.inventory.ItemStack |
getGuildMemberItemStack(org.bukkit.entity.Player player,
WauzPlayerGuild playerGuild,
org.bukkit.OfflinePlayer member)
Creates an item stack, showing information about a guild member.
|
java.lang.String |
getInventoryId() |
private static void |
loadGuildBuildings(org.bukkit.inventory.Inventory menu,
WauzPlayerGuild playerGuild)
Fills the guild menu with a list of its buildings.
|
static void |
open(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
private static void |
openGuildList(org.bukkit.entity.Player player)
Opens the guild list for the given player.
|
void |
openInstance(org.bukkit.entity.Player player)
Opens a new inventory of this type for the given player.
|
void |
selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
Checks if an event in this inventory was triggered by a player click.
|
private void |
tryToChangePlayerRank(org.bukkit.event.inventory.InventoryClickEvent event)
Called when a player head is clicked.
|
static boolean |
validateOfficerAccess(org.bukkit.entity.Player player,
WauzPlayerGuild playerGuild)
Checks if the given player is a guild officer or higher.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyInventorypublic java.lang.String getInventoryId()
getInventoryId in interface WauzInventorypublic java.util.List<WauzMode> getGamemodes()
getGamemodes in interface WauzInventorypublic void openInstance(org.bukkit.entity.Player player)
openInstance in interface WauzInventoryplayer - The player that should view the inventory.public static void open(org.bukkit.entity.Player player)
player - The player that should view the inventory.WauzPlayerGuild.getGuilds(),
WauzPlayerGuild.getGuildName(),
WauzPlayerGuild.getAdminUuidString(),
WauzPlayerGuild.getMemberUuidStrings(),
WauzPlayerGuild.getMemberAmount(),
WauzPlayerGuild.getApplicationCount(),
WauzPlayerGuild.getWrappedGuildDescription(),
WauzPlayerGuild.getGuildTabard(),
getGuildMemberItemStack(Player, WauzPlayerGuild, OfflinePlayer),
loadGuildBuildings(Inventory, WauzPlayerGuild)private static void openGuildList(org.bukkit.entity.Player player)
player - The player that should view the inventory.private static org.bukkit.inventory.ItemStack getGuildMemberItemStack(org.bukkit.entity.Player player,
WauzPlayerGuild playerGuild,
org.bukkit.OfflinePlayer member)
player - The player, viewing the guild member.playerGuild - The guild, that is being viewed.member - The member, that is being viewed.StatisticsFetcher.addCharacterLores(List)private static void loadGuildBuildings(org.bukkit.inventory.Inventory menu,
WauzPlayerGuild playerGuild)
menu - The guild menu, that should be filled.playerGuild - The player guild.public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint in interface WauzInventoryevent - The inventory click event.TabardMenu.open(Player),
TabardBuilder.open(Player),
GuildApplicationMenu.open(Player),
InstanceManager.enterGuild(Player),
WauzPlayerEventGuildLeave,
WauzPlayerGuild.applyForGuild(Player, String),
tryToChangePlayerRank(InventoryClickEvent)private void tryToChangePlayerRank(org.bukkit.event.inventory.InventoryClickEvent event)
event - The inventory click event.WauzPlayerEventGuildDemoteMember,
WauzPlayerEventGuildKick,
WauzPlayerEventGuildPromoteOfficer,
WauzPlayerEventGuildPromoteLeaderpublic static boolean validateOfficerAccess(org.bukkit.entity.Player player,
WauzPlayerGuild playerGuild)
player - The player to check.playerGuild - The guild of the player.