Class PotionHandler
java.lang.Object
com.vk2gpz.tokenenchant.api.EnchantHandler
com.vk2gpz.tokenenchant.api.PotionHandler
- All Implemented Interfaces:
com.vk2gpz.mc.api.enchantment.ICEHandler, com.vk2gpz.mc.event.EventMapper, CEHandler, org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.event.Listener
Deprecated.
PotionHandler is used to implement a custom enchant which will NOT be registered with
Minecraft's Enchantment system althorugh it extends EnchantHandler.
Hence, it rely on its identity displayed on ItemStack's lore.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CEHandler
CEHandler.Availability, CEHandler.CECommand, CEHandler.CEMinMax, CEHandler.MergeMode, CEHandler.PermissionModeNested classes/interfaces inherited from interface com.vk2gpz.mc.api.enchantment.ICEHandler
com.vk2gpz.mc.api.enchantment.ICEHandler.Cost -
Field Summary
Fields inherited from class EnchantHandler
alias, allowedItems, applyOffHand, availabilities, base, castingSound, castingSoundPitch, castingSoundVolume, ceCommands, cmd_map, COMMON_CMD_LEVEL, config, conflicts, cooldown, cooldownFormula, cooldownMsg, cooldownParams, cooldowns, costFormula, costParams, DEFAULT, description, duration, duration_multiplier, effectSound, effectSoundPitch, effectSoundVolume, enabled, enabledRegion, enabledWorld, enchantChance, enchantment, enchantmentSlotType, enchantTarget, enumItemSlots, etMax, eventPriorityMap, forceCMD, fullArmor, hidden, interval, invalidInRegion, invalidInWorld, KEY, max, mergeMax, mergeMode, name, occurrence, occurrence_min, occurrenceFormula, occurrenceParams, permMode, permNode, playEffectSoundPlayerOnly, plugin, potionEffectType, price, rarity, refundRate, showDescription, supportedItems, te, useActionBar, useRomanNumeralFields inherited from interface CEHandler
ENCHANT_KEY, POTION_KEY, rand, WILDCARD -
Constructor Summary
ConstructorsConstructorDescriptionPotionHandler(ITokenEnchant plugin) Deprecated.Constructor.PotionHandler(ITokenEnchant plugin, String name, org.bukkit.configuration.file.FileConfiguration config) Deprecated.Constructor. -
Method Summary
Methods inherited from class EnchantHandler
addAllowed, addConflict, applyOffHand, applyState, canApply, canEnchantItem, checkCooldown, cleanup, conflictsWith, conflictsWith, doHelp, equals, execCommands, findTheLevelEntry, forceCustomModelData, getAlias, getAllowed, getAllowed, getBase, getCastingSound, getCastingSoundPitch, getCastingSoundVolume, getCELevel, getCELevel, getCELevel, getCELevelOnAllArmor, getCELevelOnArmor, getConfig, getConflicts, getCooldown, getCooldownFormula, getCooldownParams, getCostFormula, getCostParams, getCustomModelData, getDescription, getDuration, getDurationMultiplier, getEffectSound, getEffectSoundPitch, getEffectSoundVolume, getEnchantChance, getEnchantment, getEnchantmentSlotType, getEnumItemSlots, getETMax, getEventPriorityMap, getInterval, getItemTarget, getKey, getLevel, getMaxLevel, getMergeMax, getMergeMode, getMinimumOccurrence, getName, getOccurrence, getOccurrenceFormula, getOccurrenceParams, getOldAliases, getPermissionMode, getPermissionNode, getPermissionNode, getPlugin, getPotionEffectType, getPrice, getRarity, getRefundRate, getScale, getSourceType, getSupportedItems, getTE, getThrower, getThrownItemStack, getVersion, hasConflictWith, hashCode, isAvailable, isEnabled, isHidden, isOldAlias, isRegistered, isThrownTool, isValid, isValid, loadConfig, loadEffectSound, onCommand, onTabComplete, papi, playEffectSoundPlayerOnly, remove, remove, removeAllowed, removeConflict, removeState, requiredTokenEnchantVersion, requirFullArmor, resetCooldown, set, setCustomModelDataMap, setEnchantment, setForceCustomModelData, setMaxLevel, setName, setPotionEffectType, setUseRomanNumeral, showDescription, useActionBar, useRomanNumeralMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CEHandler
applyPostDisEnchant, applyPostEnchant, applyPotion, canApplyPotion, canBreak, canBreak, canExecute, checkCooldown, finalizeProcess, finalizeProcess, getConfigInstance, getDisplayName, getEnchantable, getFriendlyName, getLFDescription, getLoreEntry, getLoreEntry, getMaxCostRange, getMinCostRange, getPermittedMaxLevel, getRealName, getRegisteredName, getStartLevel, isAlias, isAllowed, isCursed, isEnchantTabled, isFishing, isLoot, isRefundable, isTreasure, isVanilla, isVillagerTrade, playCastingSound, playSound, playSound, registerAlias, removePotion, removePotion, sendMessage, shouldProceed
-
Constructor Details
-
PotionHandler
Deprecated.Constructor.- Parameters:
plugin- actual TokenEnchant plugin object.- Throws:
InvalidTokenEnchantException- is thrown if the requied verison does not match or configuration is missing.
-
PotionHandler
public PotionHandler(ITokenEnchant plugin, String name, org.bukkit.configuration.file.FileConfiguration config) throws InvalidTokenEnchantException Deprecated.Constructor.- Parameters:
plugin- actual TokenEnchant plugin object.- Throws:
InvalidTokenEnchantException- is thrown if the requied verison does not match or configuration is missing.
-
-
Method Details
-
setConfig
-
isInstant
public boolean isInstant()Deprecated.Description copied from interface:CEHandlerReturns true always.- Returns:
- true
-