Class TalismanEnchantment
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.ItemSetting<Boolean>
io.github.thebusybiscuit.slimefun4.implementation.settings.TalismanEnchantment
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 Summary
ConstructorDescriptionTalismanEnchantment
(MagicianTalisman talisman, Enchantment enchantment, int level) -
Method Summary
Modifier and TypeMethodDescriptionThis returns the actualEnchantment
represented by thisItemSetting
.int
getLevel()
This returns the level for thisEnchantment
.Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.ItemSetting
equals, getDefaultValue, getErrorMessage, getItem, getKey, getValue, hashCode, isType, reload, toString, update, validateInput
-
Constructor Details
-
TalismanEnchantment
@ParametersAreNonnullByDefault public TalismanEnchantment(MagicianTalisman talisman, Enchantment enchantment, int level)
-
-
Method Details
-
getEnchantment
This returns the actualEnchantment
represented by thisItemSetting
.- Returns:
- The associated
Enchantment
-
getLevel
public int getLevel()This returns the level for thisEnchantment
.- Returns:
- The level
-