Interface MenuType.Typed<V extends InventoryView, B extends InventoryViewBuilder<V>>
- Type Parameters:
V- the generic type ofInventoryViewthat represents the view type.
- All Superinterfaces:
FeatureDependant, Keyed, 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.-
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
Modifier and TypeMethodDescriptionbuilder()default Vcreate(HumanEntity player) Creates a view of the specified menu type.create(HumanEntity player, @Nullable String title) Deprecated.create(HumanEntity player, @Nullable Component title) Creates a view of the specified menu type.Methods inherited from interface FeatureDependant
requiredFeaturesMethods inherited from interface 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 to- Returns:
- the created
InventoryView
-
create
Deprecated.Usecreate(HumanEntity, Component)instead.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
-
builder
B builder()
-
create(HumanEntity, Component)instead.