Interface MenuType.Typed<V extends InventoryView,B extends InventoryViewBuilder<V>>

Type Parameters:
V - the generic type of InventoryView that represents the view type.
B - the builder type of InventoryViewBuilder that represents the view builder.
All Superinterfaces:
Keyed, MenuType
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.
  • 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
    • builder

      @NotNull B builder()
      Creates a builder for this type of InventoryView.
      Returns:
      the new builder