java.lang.Object
studio.magemonkey.codex.manager.LoadableItem
studio.magemonkey.divinity.modules.list.classes.api.RPGClass

public class RPGClass extends studio.magemonkey.codex.manager.LoadableItem
  • Constructor Details

    • RPGClass

      public RPGClass(@NotNull Divinity plugin, @NotNull studio.magemonkey.codex.config.api.JYML cfg)
  • Method Details

    • save

      protected void save(@NotNull studio.magemonkey.codex.config.api.JYML cfg)
      Specified by:
      save in class studio.magemonkey.codex.manager.LoadableItem
    • getName

      @NotNull public String getName()
    • getDescription

      @NotNull public List<String> getDescription()
    • isPermissionRequired

      public boolean isPermissionRequired()
    • hasPermission

      public boolean hasPermission(@NotNull org.bukkit.entity.Player player)
    • getIcon

      @NotNull public org.bukkit.inventory.ItemStack getIcon()
    • executeSelectActions

      public void executeSelectActions(@NotNull org.bukkit.entity.Player exec)
    • executeLevelActions

      public void executeLevelActions(@NotNull org.bukkit.entity.Player exec, int lvl)
    • getStartLevel

      public int getStartLevel()
    • getMaxLevel

      public int getMaxLevel()
    • getStartExp

      public int getStartExp()
    • getNeedExpForLevel

      public int getNeedExpForLevel(int lvl)
    • getExpFormula

      @NotNull public String getExpFormula()
    • getSkillPointsPerLevel

      public int getSkillPointsPerLevel()
    • getAspectPointsPerLevel

      public int getAspectPointsPerLevel()
    • isChildClass

      public boolean isChildClass()
    • isChildClass

      public boolean isChildClass(@NotNull RPGClass from)
    • getChildClasses

      public Set<String> getChildClasses()
    • hasChildClass

      public boolean hasChildClass()
    • getLevelToChild

      public int getLevelToChild()
    • getManaSymbol

      @NotNull public String getManaSymbol()
    • getManaName

      @NotNull public String getManaName()
    • getManaMax

      public int getManaMax(int classLevel)
    • getManaRegen

      public double getManaRegen()
    • formatMana

      @NotNull public String formatMana(@NotNull String str)
    • getAttribute

      @Nullable public ClassAttribute getAttribute(@NotNull ClassAttributeType type)
    • getAttributeValue

      public double getAttributeValue(@NotNull ClassAttributeType type, int lvl)
    • getAspectBonuses

      @NotNull public Map<ClassAspect,ClassAspectBonus> getAspectBonuses()
    • getAspectBonus

      @Nullable public ClassAspectBonus getAspectBonus(@NotNull ClassAspect aspect)
    • getParent

      @Nullable public RPGClass getParent()
    • getFirstParent

      @Nullable public RPGClass getFirstParent()
    • getParents

      @NotNull public Set<RPGClass> getParents()
    • setParent

      public void setParent(@NotNull RPGClass cParent)