java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemSetting<Boolean>
io.github.thebusybiscuit.slimefun4.implementation.settings.TalismanEnchantment

public class TalismanEnchantment extends ItemSetting<Boolean>
This class is an extension of ItemSetting that holds an Enchantment and a level. It is only used by the TalismanListener to handle the MagicianTalisman.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • TalismanEnchantment

      @ParametersAreNonnullByDefault public TalismanEnchantment(MagicianTalisman talisman, org.bukkit.enchantments.Enchantment enchantment, int level)
  • Method Details

    • getEnchantment

      @Nonnull public org.bukkit.enchantments.Enchantment getEnchantment()
      This returns the actual Enchantment represented by this ItemSetting.
      Returns:
      The associated Enchantment
    • getLevel

      public int getLevel()
      This returns the level for this Enchantment.
      Returns:
      The level