Interface EnchantmentView

All Superinterfaces:
InventoryView

public interface EnchantmentView extends InventoryView
An instance of InventoryView which provides extra methods related to enchantment table view data.
  • Method Details

    • getEnchantmentSeed

      int getEnchantmentSeed()
      Gets the random enchantment seed used in this view
      Returns:
      The random seed used
    • getOffers

      @NotNull EnchantmentOffer[] getOffers()
      Gets the offers of this EnchantmentView
      Returns:
      The enchantment offers that are provided
    • setOffers

      void setOffers(@NotNull EnchantmentOffer[] offers) throws IllegalArgumentException
      Sets the offers to provide to the player.
      Parameters:
      offers - The offers to provide
      Throws:
      IllegalArgumentException - if the array length isn't 3