Package org.bukkit.inventory.view
Interface EnchantmentView
- All Superinterfaces:
- InventoryView
An instance of 
InventoryView which provides extra methods related to
 enchantment table view data.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.InventoryViewInventoryView.Property
- 
Field SummaryFields inherited from interface org.bukkit.inventory.InventoryViewOUTSIDE
- 
Method SummaryModifier and TypeMethodDescriptionintGets the random enchantment seed used in this viewGets the offers of this EnchantmentViewGet the upper inventory involved in this transaction.voidsetOffers(EnchantmentOffer[] offers) Sets the offers to provide to the player.Methods inherited from interface org.bukkit.inventory.InventoryViewclose, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
- 
Method Details- 
getTopInventoryDescription copied from interface:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
- getTopInventoryin interface- InventoryView
- Returns:
- the inventory
 
- 
getEnchantmentSeedint getEnchantmentSeed()Gets the random enchantment seed used in this view- Returns:
- The random seed used
 
- 
getOffersGets the offers of this EnchantmentView- Returns:
- The enchantment offers that are provided
 
- 
setOffersSets the offers to provide to the player.- Parameters:
- offers- The offers to provide
- Throws:
- IllegalArgumentException- if the array length isn't 3
 
 
-