Package org.bukkit.inventory
Interface MenuType.Typed<V extends InventoryView,B extends InventoryViewBuilder<V>>
- Type Parameters:
V
- the generic type ofInventoryView
that represents the view type.B
- the builder type ofInventoryViewBuilder
that represents the view builder.
- Enclosing interface:
MenuType
public static interface MenuType.Typed<V extends InventoryView,B extends InventoryViewBuilder<V>>
extends 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,
B extends InventoryViewBuilder<V>> -
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
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
-
builder
Creates a builder for this type of InventoryView.- Returns:
- the new builder
-