Class ExhaustionPerk
- java.lang.Object
-
- org.kikikan.deadbymoonlight.Configurable
-
- org.kikikan.deadbymoonlight.perks.Perk
-
- org.kikikan.deadbymoonlight.perks.CooldownPerk
-
- org.kikikan.deadbymoonlight.perks.ExhaustionPerk
-
- All Implemented Interfaces:
java.lang.Comparable<Configurable>
public abstract class ExhaustionPerk extends CooldownPerk
Represents a Perk that works with the Survivor's Exhaustion Status Effect.
-
-
Constructor Summary
Constructors Constructor Description ExhaustionPerk(org.bukkit.plugin.java.JavaPlugin plugin, PerkUser perkUser)
ReplacesCooldownPerk
'sCustomCooldown cooldown
to the Exhaustion Status Effect.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getCooldownTime()
protected void
setupPerk()
Created for the other abstract Perk classes.-
Methods inherited from class org.kikikan.deadbymoonlight.perks.CooldownPerk
addRunnable, isTurnedOn, off, on, removeRunnable
-
Methods inherited from class org.kikikan.deadbymoonlight.perks.Perk
amountOfTotemsRequired, equals, getDescription, getDisplayItemStack, getDisplayName, getFileName, getPerkDescription, getPerkDescriptionForChat, getPerkItem, getPerkUser, hashCode, init, isKiller, isSurvivor, setDisplayItemStack, setDisplayStatus, setupPerkDisplay, toString
-
Methods inherited from class org.kikikan.deadbymoonlight.Configurable
compareTo, getAllValuesFromConfig, getDefaultEnabled, getFormattedName, getName, getPlugin, getRequirements, getValueFromConfig, isEnabled, toTextComponent
-
-
-
-
Constructor Detail
-
ExhaustionPerk
public ExhaustionPerk(org.bukkit.plugin.java.JavaPlugin plugin, PerkUser perkUser)
ReplacesCooldownPerk
'sCustomCooldown cooldown
to the Exhaustion Status Effect.- Parameters:
plugin
- Your plugin's main classperkUser
- The PerkUser that will use the Perk. (If the Perk is constructed for the Perk List,perkUser
will be null.)
-
-
Method Detail
-
getCooldownTime
protected int getCooldownTime()
- Specified by:
getCooldownTime
in classCooldownPerk
-
setupPerk
protected void setupPerk()
Description copied from class:Perk
Created for the other abstract Perk classes. Gets called just beforeonStart()
.- Overrides:
setupPerk
in classCooldownPerk
-
-