Package org.bukkit.inventory
Interface MenuType
- All Superinterfaces:
- Keyed,- RegistryAware
- All Known Subinterfaces:
- MenuType.Typed<V,- B> 
Represents different kinds of views, also known as menus, which can be
 created and viewed by the player.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMenuType.Typed<V extends InventoryView,B extends InventoryViewBuilder<V>> Typed represents a subtype ofMenuTypes that have a knownInventoryViewtype at compile time.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final MenuType.Typed<AnvilView, LocationInventoryViewBuilder<AnvilView>> A MenuType which represents an anvil.static final MenuType.Typed<BeaconView, LocationInventoryViewBuilder<BeaconView>> A MenuType which represents a beacon.static final MenuType.Typed<FurnaceView, LocationInventoryViewBuilder<FurnaceView>> A MenuType which represents a blast furnace.A MenuType which represents a brewing stand.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a cartography table.static final MenuType.Typed<CrafterView, LocationInventoryViewBuilder<CrafterView>> A MenuType which represents a crafterstatic final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a crafting table.static final MenuType.Typed<EnchantmentView, LocationInventoryViewBuilder<EnchantmentView>> A MenuType which represents an enchantment table.static final MenuType.Typed<FurnaceView, LocationInventoryViewBuilder<FurnaceView>> A MenuType which represents a furnace.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a dispenser/dropper like menu with 3 columns and 3 rows.static final MenuType.Typed<InventoryView, InventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 1 row.static final MenuType.Typed<InventoryView, InventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 2 rows.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 3 rows.static final MenuType.Typed<InventoryView, InventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 4 rows.static final MenuType.Typed<InventoryView, InventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 5 rows.static final MenuType.Typed<InventoryView, InventoryViewBuilder<InventoryView>> A MenuType which represents a chest with 6 rows.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a grindstone.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a hopper.static final MenuType.Typed<LecternView, LocationInventoryViewBuilder<LecternView>> A MenuType which represents a lectern, a book like view.static final MenuType.Typed<LoomView, LocationInventoryViewBuilder<LoomView>> A MenuType which represents a loom.static final MenuType.Typed<MerchantView, MerchantInventoryViewBuilder<MerchantView>> A MenuType which represents a merchant.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a shulker box.static final MenuType.Typed<InventoryView, LocationInventoryViewBuilder<InventoryView>> A MenuType which represents a stonecutter.static final MenuType.Typed<FurnaceView, LocationInventoryViewBuilder<FurnaceView>> A MenuType which represents a smoker.static final MenuType.Typed<StonecutterView, LocationInventoryViewBuilder<StonecutterView>> A MenuType which represents a stonecutter.
- 
Method SummaryModifier and TypeMethodDescriptionClass<? extends InventoryView> Gets theInventoryViewclass of this MenuType.getKey()Deprecated.typed()Yields this MenuType as a typed version of itself with a plainInventoryViewrepresenting it.<V extends InventoryView,B extends InventoryViewBuilder<V>> 
 MenuType.Typed<V, B> Yields this MenuType as a typed version of itself with a specificInventoryViewrepresenting it.Methods inherited from interface org.bukkit.registry.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegistered
- 
Field Details- 
GENERIC_9X1A MenuType which represents a chest with 1 row.
- 
GENERIC_9X2A MenuType which represents a chest with 2 rows.
- 
GENERIC_9X3A MenuType which represents a chest with 3 rows.
- 
GENERIC_9X4A MenuType which represents a chest with 4 rows.
- 
GENERIC_9X5A MenuType which represents a chest with 5 rows.
- 
GENERIC_9X6A MenuType which represents a chest with 6 rows.
- 
GENERIC_3X3A MenuType which represents a dispenser/dropper like menu with 3 columns and 3 rows.
- 
CRAFTER_3X3A MenuType which represents a crafter
- 
ANVILA MenuType which represents an anvil.
- 
BEACONA MenuType which represents a beacon.
- 
BLAST_FURNACEA MenuType which represents a blast furnace.
- 
BREWING_STANDstatic final MenuType.Typed<BrewingStandView,LocationInventoryViewBuilder<BrewingStandView>> BREWING_STANDA MenuType which represents a brewing stand.
- 
CRAFTINGA MenuType which represents a crafting table.
- 
ENCHANTMENTstatic final MenuType.Typed<EnchantmentView,LocationInventoryViewBuilder<EnchantmentView>> ENCHANTMENTA MenuType which represents an enchantment table.
- 
FURNACEA MenuType which represents a furnace.
- 
GRINDSTONEA MenuType which represents a grindstone.
- 
HOPPERA MenuType which represents a hopper.
- 
LECTERNA MenuType which represents a lectern, a book like view.
- 
LOOMA MenuType which represents a loom.
- 
MERCHANTA MenuType which represents a merchant.
- 
SHULKER_BOXA MenuType which represents a shulker box.
- 
SMITHINGA MenuType which represents a stonecutter.
- 
SMOKERA MenuType which represents a smoker.
- 
CARTOGRAPHY_TABLEstatic final MenuType.Typed<InventoryView,LocationInventoryViewBuilder<InventoryView>> CARTOGRAPHY_TABLEA MenuType which represents a cartography table.
- 
STONECUTTERstatic final MenuType.Typed<StonecutterView,LocationInventoryViewBuilder<StonecutterView>> STONECUTTERA MenuType which represents a stonecutter.
 
- 
- 
Method Details- 
typedYields this MenuType as a typed version of itself with a plainInventoryViewrepresenting it.- Returns:
- the typed MenuType.
 
- 
typed@NotNull <V extends InventoryView,B extends InventoryViewBuilder<V>> MenuType.Typed<V,B> typed(@NotNull Class<V> viewClass) throws IllegalArgumentException Yields this MenuType as a typed version of itself with a specificInventoryViewrepresenting it.- Type Parameters:
- V- the generic type of the InventoryView to get this MenuType with
- B- the generic type of the InventoryViewBuilder to get this MenuType with
- Parameters:
- viewClass- the class type of the- InventoryViewto type this- InventoryViewwith.
- Returns:
- the typed MenuType
- Throws:
- IllegalArgumentException- if the provided viewClass cannot be typed to this MenuType
 
- 
getInventoryViewClassGets theInventoryViewclass of this MenuType.- Returns:
- the InventoryViewclass of this MenuType
 
- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
 
- 
RegistryAware.getKeyOrThrow()instead.