Interface MenuType.Typed<V extends InventoryView>

Type Parameters:
V - the generic type of InventoryView that represents the view type.
All Superinterfaces:
Keyed, MenuType
Enclosing interface:
MenuType

public static interface MenuType.Typed<V extends InventoryView> extends MenuType
Typed represents a subtype of MenuTypes that have a known InventoryView type at compile time.
  • Method Details

    • create

      @NotNull V create(@NotNull HumanEntity player, @NotNull String title)
      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 to
      title - the title of the view
      Returns:
      the created InventoryView