Class MenuUtils
java.lang.Object
nl.mtvehicles.core.infrastructure.utils.MenuUtils
Methods used in plugin's GUIs
-
Field Summary
Modifier and TypeFieldDescriptionPage opened in the restore menuUUID of the player whose vehicles are in the restore menu -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
benzineEdit(org.bukkit.entity.Player p)
Open fuel edit menu to a playerstatic org.bukkit.inventory.ItemStack
Get the item which is clicked for getting to a previous menustatic org.bukkit.inventory.ItemStack
Get the item which is clicked for closing a menustatic void
getvehicleCMD(org.bukkit.entity.Player p, int page, int slot)
Open vehicle choice menu to a playerstatic void
membersEdit(org.bukkit.entity.Player p)
Open members edit menu to a playerstatic void
menuEdit(org.bukkit.entity.Player p)
Open /vehicle edit menu to a playerstatic void
restoreCMD(org.bukkit.entity.Player p, int page, UUID ownerUUID)
Open /vehicle restore menu to a playerstatic void
speedEdit(org.bukkit.entity.Player p)
Open speed edit menu to a playerstatic void
trunkEdit(org.bukkit.entity.Player p)
Open trunk edit menu to a player
-
Field Details
-
restorePage
Page opened in the restore menu -
restoreUUID
UUID of the player whose vehicles are in the restore menu
-
-
Constructor Details
-
MenuUtils
public MenuUtils()
-
-
Method Details
-
getBackItem
public static org.bukkit.inventory.ItemStack getBackItem()Get the item which is clicked for getting to a previous menu -
getCloseItem
public static org.bukkit.inventory.ItemStack getCloseItem()Get the item which is clicked for closing a menu -
benzineEdit
public static void benzineEdit(org.bukkit.entity.Player p)Open fuel edit menu to a player -
trunkEdit
public static void trunkEdit(org.bukkit.entity.Player p)Open trunk edit menu to a player -
membersEdit
public static void membersEdit(org.bukkit.entity.Player p)Open members edit menu to a player -
speedEdit
public static void speedEdit(org.bukkit.entity.Player p)Open speed edit menu to a player -
getvehicleCMD
public static void getvehicleCMD(org.bukkit.entity.Player p, int page, int slot)Open vehicle choice menu to a player -
restoreCMD
Open /vehicle restore menu to a player- Parameters:
p
- Playerpage
- PageownerUUID
- UUID of the owner whose vehicles are displayed
-