Class CommentedConfigurationSection

java.lang.Object
dev.esophose.playerparticles.config.CommentedConfigurationSection
All Implemented Interfaces:
org.bukkit.configuration.ConfigurationSection
Direct Known Subclasses:
CommentedFileConfiguration

public class CommentedConfigurationSection
extends java.lang.Object
implements org.bukkit.configuration.ConfigurationSection
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.bukkit.configuration.ConfigurationSection config  
  • Constructor Summary

    Constructors 
    Constructor Description
    CommentedConfigurationSection​(org.bukkit.configuration.ConfigurationSection configuration)  
  • Method Summary

    Modifier and Type Method Description
    void addDefault​(java.lang.String s, java.lang.Object o)  
    boolean contains​(java.lang.String s)  
    boolean contains​(java.lang.String s, boolean b)  
    CommentedConfigurationSection createSection​(java.lang.String s)  
    CommentedConfigurationSection createSection​(java.lang.String s, java.util.Map<?,​?> map)  
    java.lang.Object get​(java.lang.String s)  
    java.lang.Object get​(java.lang.String s, java.lang.Object o)  
    boolean getBoolean​(java.lang.String s)  
    boolean getBoolean​(java.lang.String s, boolean b)  
    java.util.List<java.lang.Boolean> getBooleanList​(java.lang.String s)  
    java.util.List<java.lang.Byte> getByteList​(java.lang.String s)  
    java.util.List<java.lang.Character> getCharacterList​(java.lang.String s)  
    org.bukkit.Color getColor​(java.lang.String s)  
    org.bukkit.Color getColor​(java.lang.String s, org.bukkit.Color color)  
    java.util.List<java.lang.String> getComments​(java.lang.String path)  
    CommentedConfigurationSection getConfigurationSection​(java.lang.String s)  
    java.lang.String getCurrentPath()  
    java.lang.Boolean getDefaultedBoolean​(java.lang.String path)
    Gets a defaulted boolean value.
    java.lang.Boolean getDefaultedBoolean​(java.lang.String path, java.lang.Boolean def)
    Gets a defaulted boolean value.
    CommentedConfigurationSection getDefaultSection()  
    double getDouble​(java.lang.String s)  
    double getDouble​(java.lang.String s, double v)  
    java.util.List<java.lang.Double> getDoubleList​(java.lang.String s)  
    java.util.List<java.lang.Float> getFloatList​(java.lang.String s)  
    java.util.List<java.lang.String> getInlineComments​(java.lang.String path)  
    int getInt​(java.lang.String s)  
    int getInt​(java.lang.String s, int i)  
    java.util.List<java.lang.Integer> getIntegerList​(java.lang.String s)  
    org.bukkit.inventory.ItemStack getItemStack​(java.lang.String s)  
    org.bukkit.inventory.ItemStack getItemStack​(java.lang.String s, org.bukkit.inventory.ItemStack itemStack)  
    java.util.Set<java.lang.String> getKeys​(boolean b)  
    java.util.List<?> getList​(java.lang.String s)  
    java.util.List<?> getList​(java.lang.String s, java.util.List<?> list)  
    org.bukkit.Location getLocation​(java.lang.String path)  
    org.bukkit.Location getLocation​(java.lang.String path, org.bukkit.Location def)  
    long getLong​(java.lang.String s)  
    long getLong​(java.lang.String s, long l)  
    java.util.List<java.lang.Long> getLongList​(java.lang.String s)  
    java.util.List<java.util.Map<?,​?>> getMapList​(java.lang.String s)  
    java.lang.String getName()  
    <T> T getObject​(java.lang.String s, java.lang.Class<T> aClass)  
    <T> T getObject​(java.lang.String s, java.lang.Class<T> aClass, T t)  
    org.bukkit.OfflinePlayer getOfflinePlayer​(java.lang.String s)  
    org.bukkit.OfflinePlayer getOfflinePlayer​(java.lang.String s, org.bukkit.OfflinePlayer offlinePlayer)  
    org.bukkit.configuration.ConfigurationSection getParent()  
    org.bukkit.configuration.Configuration getRoot()  
    <T extends org.bukkit.configuration.serialization.ConfigurationSerializable>
    T
    getSerializable​(java.lang.String s, java.lang.Class<T> aClass)  
    <T extends org.bukkit.configuration.serialization.ConfigurationSerializable>
    T
    getSerializable​(java.lang.String s, java.lang.Class<T> aClass, T t)  
    java.util.List<java.lang.Short> getShortList​(java.lang.String s)  
    java.lang.String getString​(java.lang.String s)  
    java.lang.String getString​(java.lang.String s, java.lang.String s1)  
    java.util.List<java.lang.String> getStringList​(java.lang.String s)  
    java.util.Map<java.lang.String,​java.lang.Object> getValues​(boolean b)  
    org.bukkit.util.Vector getVector​(java.lang.String s)  
    org.bukkit.util.Vector getVector​(java.lang.String s, org.bukkit.util.Vector vector)  
    boolean isBoolean​(java.lang.String s)  
    boolean isColor​(java.lang.String s)  
    boolean isConfigurationSection​(java.lang.String s)  
    boolean isDouble​(java.lang.String s)  
    boolean isInt​(java.lang.String s)  
    boolean isItemStack​(java.lang.String s)  
    boolean isList​(java.lang.String s)  
    boolean isLocation​(java.lang.String path)  
    boolean isLong​(java.lang.String s)  
    boolean isOfflinePlayer​(java.lang.String s)  
    boolean isSet​(java.lang.String s)  
    boolean isString​(java.lang.String s)  
    boolean isVector​(java.lang.String s)  
    void set​(java.lang.String s, java.lang.Object o)  
    void setComments​(java.lang.String path, java.util.List<java.lang.String> comments)  
    void setInlineComments​(java.lang.String path, java.util.List<java.lang.String> comments)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • config

      protected org.bukkit.configuration.ConfigurationSection config
  • Constructor Details

  • Method Details

    • getDefaultedBoolean

      public java.lang.Boolean getDefaultedBoolean​(java.lang.String path)
      Gets a defaulted boolean value. These accept values of either "default", true, or false
      Parameters:
      path - The value key
      Returns:
      null for "default", otherwise true or false
    • getDefaultedBoolean

      public java.lang.Boolean getDefaultedBoolean​(java.lang.String path, java.lang.Boolean def)
      Gets a defaulted boolean value. These accept values of either "default", true, or false
      Parameters:
      path - The value key
      def - The value to return if the key is not found
      Returns:
      null for "default", otherwise true or false
    • getKeys

      public java.util.Set<java.lang.String> getKeys​(boolean b)
      Specified by:
      getKeys in interface org.bukkit.configuration.ConfigurationSection
    • getValues

      public java.util.Map<java.lang.String,​java.lang.Object> getValues​(boolean b)
      Specified by:
      getValues in interface org.bukkit.configuration.ConfigurationSection
    • contains

      public boolean contains​(java.lang.String s)
      Specified by:
      contains in interface org.bukkit.configuration.ConfigurationSection
    • contains

      public boolean contains​(java.lang.String s, boolean b)
      Specified by:
      contains in interface org.bukkit.configuration.ConfigurationSection
    • isSet

      public boolean isSet​(java.lang.String s)
      Specified by:
      isSet in interface org.bukkit.configuration.ConfigurationSection
    • getCurrentPath

      public java.lang.String getCurrentPath()
      Specified by:
      getCurrentPath in interface org.bukkit.configuration.ConfigurationSection
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface org.bukkit.configuration.ConfigurationSection
    • getRoot

      public org.bukkit.configuration.Configuration getRoot()
      Specified by:
      getRoot in interface org.bukkit.configuration.ConfigurationSection
    • getParent

      public org.bukkit.configuration.ConfigurationSection getParent()
      Specified by:
      getParent in interface org.bukkit.configuration.ConfigurationSection
    • get

      public java.lang.Object get​(java.lang.String s)
      Specified by:
      get in interface org.bukkit.configuration.ConfigurationSection
    • get

      public java.lang.Object get​(java.lang.String s, java.lang.Object o)
      Specified by:
      get in interface org.bukkit.configuration.ConfigurationSection
    • set

      public void set​(java.lang.String s, java.lang.Object o)
      Specified by:
      set in interface org.bukkit.configuration.ConfigurationSection
    • createSection

      public CommentedConfigurationSection createSection​(java.lang.String s)
      Specified by:
      createSection in interface org.bukkit.configuration.ConfigurationSection
    • createSection

      public CommentedConfigurationSection createSection​(java.lang.String s, java.util.Map<?,​?> map)
      Specified by:
      createSection in interface org.bukkit.configuration.ConfigurationSection
    • getString

      public java.lang.String getString​(java.lang.String s)
      Specified by:
      getString in interface org.bukkit.configuration.ConfigurationSection
    • getString

      public java.lang.String getString​(java.lang.String s, java.lang.String s1)
      Specified by:
      getString in interface org.bukkit.configuration.ConfigurationSection
    • isString

      public boolean isString​(java.lang.String s)
      Specified by:
      isString in interface org.bukkit.configuration.ConfigurationSection
    • getInt

      public int getInt​(java.lang.String s)
      Specified by:
      getInt in interface org.bukkit.configuration.ConfigurationSection
    • getInt

      public int getInt​(java.lang.String s, int i)
      Specified by:
      getInt in interface org.bukkit.configuration.ConfigurationSection
    • isInt

      public boolean isInt​(java.lang.String s)
      Specified by:
      isInt in interface org.bukkit.configuration.ConfigurationSection
    • getBoolean

      public boolean getBoolean​(java.lang.String s)
      Specified by:
      getBoolean in interface org.bukkit.configuration.ConfigurationSection
    • getBoolean

      public boolean getBoolean​(java.lang.String s, boolean b)
      Specified by:
      getBoolean in interface org.bukkit.configuration.ConfigurationSection
    • isBoolean

      public boolean isBoolean​(java.lang.String s)
      Specified by:
      isBoolean in interface org.bukkit.configuration.ConfigurationSection
    • getDouble

      public double getDouble​(java.lang.String s)
      Specified by:
      getDouble in interface org.bukkit.configuration.ConfigurationSection
    • getDouble

      public double getDouble​(java.lang.String s, double v)
      Specified by:
      getDouble in interface org.bukkit.configuration.ConfigurationSection
    • isDouble

      public boolean isDouble​(java.lang.String s)
      Specified by:
      isDouble in interface org.bukkit.configuration.ConfigurationSection
    • getLong

      public long getLong​(java.lang.String s)
      Specified by:
      getLong in interface org.bukkit.configuration.ConfigurationSection
    • getLong

      public long getLong​(java.lang.String s, long l)
      Specified by:
      getLong in interface org.bukkit.configuration.ConfigurationSection
    • isLong

      public boolean isLong​(java.lang.String s)
      Specified by:
      isLong in interface org.bukkit.configuration.ConfigurationSection
    • getList

      public java.util.List<?> getList​(java.lang.String s)
      Specified by:
      getList in interface org.bukkit.configuration.ConfigurationSection
    • getList

      public java.util.List<?> getList​(java.lang.String s, java.util.List<?> list)
      Specified by:
      getList in interface org.bukkit.configuration.ConfigurationSection
    • isList

      public boolean isList​(java.lang.String s)
      Specified by:
      isList in interface org.bukkit.configuration.ConfigurationSection
    • getStringList

      public java.util.List<java.lang.String> getStringList​(java.lang.String s)
      Specified by:
      getStringList in interface org.bukkit.configuration.ConfigurationSection
    • getIntegerList

      public java.util.List<java.lang.Integer> getIntegerList​(java.lang.String s)
      Specified by:
      getIntegerList in interface org.bukkit.configuration.ConfigurationSection
    • getBooleanList

      public java.util.List<java.lang.Boolean> getBooleanList​(java.lang.String s)
      Specified by:
      getBooleanList in interface org.bukkit.configuration.ConfigurationSection
    • getDoubleList

      public java.util.List<java.lang.Double> getDoubleList​(java.lang.String s)
      Specified by:
      getDoubleList in interface org.bukkit.configuration.ConfigurationSection
    • getFloatList

      public java.util.List<java.lang.Float> getFloatList​(java.lang.String s)
      Specified by:
      getFloatList in interface org.bukkit.configuration.ConfigurationSection
    • getLongList

      public java.util.List<java.lang.Long> getLongList​(java.lang.String s)
      Specified by:
      getLongList in interface org.bukkit.configuration.ConfigurationSection
    • getByteList

      public java.util.List<java.lang.Byte> getByteList​(java.lang.String s)
      Specified by:
      getByteList in interface org.bukkit.configuration.ConfigurationSection
    • getCharacterList

      public java.util.List<java.lang.Character> getCharacterList​(java.lang.String s)
      Specified by:
      getCharacterList in interface org.bukkit.configuration.ConfigurationSection
    • getShortList

      public java.util.List<java.lang.Short> getShortList​(java.lang.String s)
      Specified by:
      getShortList in interface org.bukkit.configuration.ConfigurationSection
    • getMapList

      public java.util.List<java.util.Map<?,​?>> getMapList​(java.lang.String s)
      Specified by:
      getMapList in interface org.bukkit.configuration.ConfigurationSection
    • getObject

      public <T> T getObject​(java.lang.String s, java.lang.Class<T> aClass)
      Specified by:
      getObject in interface org.bukkit.configuration.ConfigurationSection
    • getObject

      public <T> T getObject​(java.lang.String s, java.lang.Class<T> aClass, T t)
      Specified by:
      getObject in interface org.bukkit.configuration.ConfigurationSection
    • getSerializable

      public <T extends org.bukkit.configuration.serialization.ConfigurationSerializable> T getSerializable​(java.lang.String s, java.lang.Class<T> aClass)
      Specified by:
      getSerializable in interface org.bukkit.configuration.ConfigurationSection
    • getSerializable

      public <T extends org.bukkit.configuration.serialization.ConfigurationSerializable> T getSerializable​(java.lang.String s, java.lang.Class<T> aClass, T t)
      Specified by:
      getSerializable in interface org.bukkit.configuration.ConfigurationSection
    • getVector

      public org.bukkit.util.Vector getVector​(java.lang.String s)
      Specified by:
      getVector in interface org.bukkit.configuration.ConfigurationSection
    • getVector

      public org.bukkit.util.Vector getVector​(java.lang.String s, org.bukkit.util.Vector vector)
      Specified by:
      getVector in interface org.bukkit.configuration.ConfigurationSection
    • isVector

      public boolean isVector​(java.lang.String s)
      Specified by:
      isVector in interface org.bukkit.configuration.ConfigurationSection
    • getOfflinePlayer

      public org.bukkit.OfflinePlayer getOfflinePlayer​(java.lang.String s)
      Specified by:
      getOfflinePlayer in interface org.bukkit.configuration.ConfigurationSection
    • getOfflinePlayer

      public org.bukkit.OfflinePlayer getOfflinePlayer​(java.lang.String s, org.bukkit.OfflinePlayer offlinePlayer)
      Specified by:
      getOfflinePlayer in interface org.bukkit.configuration.ConfigurationSection
    • isOfflinePlayer

      public boolean isOfflinePlayer​(java.lang.String s)
      Specified by:
      isOfflinePlayer in interface org.bukkit.configuration.ConfigurationSection
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack​(java.lang.String s)
      Specified by:
      getItemStack in interface org.bukkit.configuration.ConfigurationSection
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack​(java.lang.String s, org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      getItemStack in interface org.bukkit.configuration.ConfigurationSection
    • isItemStack

      public boolean isItemStack​(java.lang.String s)
      Specified by:
      isItemStack in interface org.bukkit.configuration.ConfigurationSection
    • getColor

      public org.bukkit.Color getColor​(java.lang.String s)
      Specified by:
      getColor in interface org.bukkit.configuration.ConfigurationSection
    • getColor

      public org.bukkit.Color getColor​(java.lang.String s, org.bukkit.Color color)
      Specified by:
      getColor in interface org.bukkit.configuration.ConfigurationSection
    • isColor

      public boolean isColor​(java.lang.String s)
      Specified by:
      isColor in interface org.bukkit.configuration.ConfigurationSection
    • getLocation

      public org.bukkit.Location getLocation​(java.lang.String path)
      Specified by:
      getLocation in interface org.bukkit.configuration.ConfigurationSection
    • getLocation

      public org.bukkit.Location getLocation​(java.lang.String path, org.bukkit.Location def)
      Specified by:
      getLocation in interface org.bukkit.configuration.ConfigurationSection
    • isLocation

      public boolean isLocation​(java.lang.String path)
      Specified by:
      isLocation in interface org.bukkit.configuration.ConfigurationSection
    • getConfigurationSection

      public CommentedConfigurationSection getConfigurationSection​(java.lang.String s)
      Specified by:
      getConfigurationSection in interface org.bukkit.configuration.ConfigurationSection
    • isConfigurationSection

      public boolean isConfigurationSection​(java.lang.String s)
      Specified by:
      isConfigurationSection in interface org.bukkit.configuration.ConfigurationSection
    • getDefaultSection

      public CommentedConfigurationSection getDefaultSection()
      Specified by:
      getDefaultSection in interface org.bukkit.configuration.ConfigurationSection
    • addDefault

      public void addDefault​(java.lang.String s, java.lang.Object o)
      Specified by:
      addDefault in interface org.bukkit.configuration.ConfigurationSection
    • getComments

      public java.util.List<java.lang.String> getComments​(java.lang.String path)
      Specified by:
      getComments in interface org.bukkit.configuration.ConfigurationSection
    • getInlineComments

      public java.util.List<java.lang.String> getInlineComments​(java.lang.String path)
      Specified by:
      getInlineComments in interface org.bukkit.configuration.ConfigurationSection
    • setComments

      public void setComments​(java.lang.String path, java.util.List<java.lang.String> comments)
      Specified by:
      setComments in interface org.bukkit.configuration.ConfigurationSection
    • setInlineComments

      public void setInlineComments​(java.lang.String path, java.util.List<java.lang.String> comments)
      Specified by:
      setInlineComments in interface org.bukkit.configuration.ConfigurationSection