Interface MenuType.Typed<V extends InventoryView, B extends InventoryViewBuilder<V>>
- Type Parameters:
V- the generic type ofInventoryViewthat represents the view type.B- the builder type ofInventoryViewBuilderthat represents the view builder.
- All Superinterfaces:
Keyed, MenuType, RegistryAware
- Enclosing interface:
MenuType
public static interface MenuType.Typed<V extends InventoryView, B extends InventoryViewBuilder<V>>
extends MenuType
Typed represents a subtype of
MenuTypes that have a known
InventoryView type at compile time.-
Nested Class Summary
Nested classes/interfaces inherited from interface MenuType
MenuType.Typed<V,B> -
Field Summary
Fields inherited from interface 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 MenuType
getInventoryViewClass, getKey, typed, typedMethods inherited from interface RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
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
-