Package org.bukkit.inventory
Interface MenuType.Typed<V extends InventoryView>
- Type Parameters:
V
- the generic type ofInventoryView
that represents the view type.
- Enclosing interface:
MenuType
Typed represents a subtype of
MenuType
s that have a known
InventoryView
type at compile time.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.MenuType
MenuType.Typed<V extends InventoryView>
-
Field Summary
Fields inherited from interface org.bukkit.inventory.MenuType
ANVIL, BEACON, BLAST_FURNACE, BREWING_STAND, CARTOGRAPHY_TABLE, CRAFTER_3X3, CRAFTING, ENCHANTMENT, FURNACE, GENERIC_3X3, GENERIC_9X1, GENERIC_9X2, GENERIC_9X3, GENERIC_9X4, GENERIC_9X5, GENERIC_9X6, GRINDSTONE, HOPPER, LECTERN, LOOM, MERCHANT, SHULKER_BOX, SMITHING, SMOKER, STONECUTTER
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(HumanEntity player, String title) Creates a view of the specified menu type.Methods inherited from interface org.bukkit.inventory.MenuType
getInventoryViewClass, typed, typed
-
Method Details
-
create
Creates a view of the specified menu type.The player provided to create this view must be the player the view is opened for. See
HumanEntity.openInventory(InventoryView)
for more information.- Parameters:
player
- the player the view belongs totitle
- the title of the view- Returns:
- the created
InventoryView
-