Package org.bukkit.inventory
Interface MenuType.Typed<V extends InventoryView>
- Type Parameters:
V- the generic type ofInventoryViewthat represents the view type.
- All Superinterfaces:
FeatureDependant,Keyed,Keyed,MenuType
- Enclosing interface:
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 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
Methods inherited from interface io.papermc.paper.world.flag.FeatureDependant
requiredFeaturesMethods inherited from interface org.bukkit.inventory.MenuType
getInventoryViewClass, typed, typed
-
Method Details
-
create
@NotNull @Deprecated(since="1.21") V create(@NotNull @NotNull HumanEntity player, @NotNull @NotNull String title) Deprecated.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
-
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.- Specified by:
createin interfaceMenuType- Parameters:
player- the player the view belongs totitle- the title of the view- Returns:
- the created
InventoryView
-
create(HumanEntity, net.kyori.adventure.text.Component)instead.