Class RewardFileDefinedReward

java.lang.Object
com.bencodez.advancedcore.api.rewards.RewardFileDefinedReward
All Implemented Interfaces:
DefinedReward

public class RewardFileDefinedReward extends Object implements DefinedReward
  • Constructor Details

    • RewardFileDefinedReward

      public RewardFileDefinedReward(Reward master)
    • RewardFileDefinedReward

      public RewardFileDefinedReward(Reward master, String path)
  • Method Details

    • createSection

      public void createSection(String key)
      Description copied from interface: DefinedReward
      Creates a section.
      Specified by:
      createSection in interface DefinedReward
      Parameters:
      key - the key
    • createSectionLocal

      public void createSectionLocal(String key)
    • getFileData

      public org.bukkit.configuration.ConfigurationSection getFileData()
      Description copied from interface: DefinedReward
      Gets the file data.
      Specified by:
      getFileData in interface DefinedReward
      Returns:
      the file data
    • getFullPath

      public String getFullPath()
      Description copied from interface: DefinedReward
      Gets the full path.
      Specified by:
      getFullPath in interface DefinedReward
      Returns:
      the full path
    • getReward

      public Reward getReward()
    • getValue

      public Object getValue(String path)
    • isDirectlyDefined

      public boolean isDirectlyDefined()
    • needsDot

      public String needsDot()
      Description copied from interface: DefinedReward
      Needs dot separator.
      Specified by:
      needsDot in interface DefinedReward
      Returns:
      the dot string
    • save

      public void save()
      Description copied from interface: DefinedReward
      Saves the configuration.
      Specified by:
      save in interface DefinedReward
    • setData

      public void setData(String path, Object value)
      Description copied from interface: DefinedReward
      Sets the data.
      Specified by:
      setData in interface DefinedReward
      Parameters:
      path - the path
      value - the value
    • setParentValue

      public void setParentValue(Object value)
    • setValue

      public void setValue(String path, Object value)