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 Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.InventoryView
InventoryView.Property
-
Field Summary
Fields inherited from interface org.bukkit.inventory.InventoryView
OUTSIDE
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the random enchantment seed used in this viewGets the offers of this EnchantmentViewvoid
setOffers
(EnchantmentOffer[] offers) Sets the offers to provide to the player.Methods inherited from interface org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getTopInventory, getType, setCursor, setItem, setProperty, setTitle
-
Method Details
-
getEnchantmentSeed
int getEnchantmentSeed()Gets the random enchantment seed used in this view- Returns:
- The random seed used
-
getOffers
Gets the offers of this EnchantmentView- Returns:
- The enchantment offers that are provided
-
setOffers
Sets the offers to provide to the player.- Parameters:
offers
- The offers to provide- Throws:
IllegalArgumentException
- if the array length isn't 3
-