Interface RefundableEnchant


public interface RefundableEnchant
Interface representing enchantments that support refunding mechanics.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the GUI slot position where this enchantment's refund option appears in the disenchanting GUI.
    double
    Gets the percentage of the original enchantment price that will be refunded upon disenchanting.
    boolean
    Indicates whether refunding this enchantment is enabled.
  • Method Details

    • isRefundEnabled

      boolean isRefundEnabled()
      Indicates whether refunding this enchantment is enabled.
      Returns:
      true if refunding is enabled, false otherwise.
    • getRefundGuiSlot

      int getRefundGuiSlot()
      Gets the GUI slot position where this enchantment's refund option appears in the disenchanting GUI.
      Returns:
      the slot index in the disenchant GUI.
    • getRefundPercentage

      double getRefundPercentage()
      Gets the percentage of the original enchantment price that will be refunded upon disenchanting. Value ranges between 0.00 (0%) and 100.00 (100%).
      Returns:
      the refund percentage.