public class SpellData extends Object
| Constructor and Description |
|---|
SpellData(SpellKey spellKey) |
SpellData(String spellKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCast() |
long |
getCastCount() |
double |
getCharges() |
double |
getCharges(double regenerationRate,
double maxCharges) |
long |
getCooldownExpiration() |
org.bukkit.configuration.ConfigurationSection |
getExtraData()
Deprecated.
|
SpellKey |
getKey() |
long |
getLastCast() |
long |
getLastEarn() |
long |
getTimeToRecharge(double regenerationRate,
double maxCharges) |
org.bukkit.configuration.ConfigurationSection |
getVariables() |
boolean |
isActive() |
boolean |
isEnabled() |
void |
setCastCount(long castCount) |
void |
setCharges(double charges) |
void |
setCooldownExpiration(long cooldownExpiration) |
void |
setExtraData(org.bukkit.configuration.ConfigurationSection data)
Deprecated.
|
void |
setIsActive(boolean isActive) |
void |
setIsEnabled(boolean isEnabled) |
void |
setKey(String spellKey) |
void |
setLastCast(long lastCast) |
void |
setLastEarn(long lastEarn) |
void |
setVariables(org.bukkit.configuration.ConfigurationSection data) |
boolean |
useCharge(double regenerationRate,
double maxCharges) |
public SpellData(SpellKey spellKey)
public SpellData(String spellKey)
@Deprecated public void setExtraData(org.bukkit.configuration.ConfigurationSection data)
@Deprecated public org.bukkit.configuration.ConfigurationSection getExtraData()
public void setVariables(org.bukkit.configuration.ConfigurationSection data)
public org.bukkit.configuration.ConfigurationSection getVariables()
public SpellKey getKey()
public void setKey(String spellKey)
public boolean isActive()
public void setIsActive(boolean isActive)
public boolean isEnabled()
public void setIsEnabled(boolean isEnabled)
public long getLastCast()
public void setLastCast(long lastCast)
public boolean useCharge(double regenerationRate,
double maxCharges)
public long getTimeToRecharge(double regenerationRate,
double maxCharges)
public double getCharges(double regenerationRate,
double maxCharges)
public double getCharges()
public void setCharges(double charges)
public long getCastCount()
public void setCastCount(long castCount)
public void addCast()
public long getCooldownExpiration()
public void setCooldownExpiration(long cooldownExpiration)
public long getLastEarn()
public void setLastEarn(long lastEarn)
Copyright © 2021 elMakers. All rights reserved.