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>
TgetSerializable(java.lang.String s, java.lang.Class<T> aClass)
<T extends org.bukkit.configuration.serialization.ConfigurationSerializable>
TgetSerializable(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)
-
Field Details
-
config
protected org.bukkit.configuration.ConfigurationSection config
-
-
Constructor Details
-
CommentedConfigurationSection
public CommentedConfigurationSection(org.bukkit.configuration.ConfigurationSection configuration)
-
-
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 keydef
- 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 interfaceorg.bukkit.configuration.ConfigurationSection
-
getValues
public java.util.Map<java.lang.String,java.lang.Object> getValues(boolean b)- Specified by:
getValues
in interfaceorg.bukkit.configuration.ConfigurationSection
-
contains
public boolean contains(java.lang.String s)- Specified by:
contains
in interfaceorg.bukkit.configuration.ConfigurationSection
-
contains
public boolean contains(java.lang.String s, boolean b)- Specified by:
contains
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isSet
public boolean isSet(java.lang.String s)- Specified by:
isSet
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getCurrentPath
public java.lang.String getCurrentPath()- Specified by:
getCurrentPath
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getName
public java.lang.String getName()- Specified by:
getName
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getRoot
public org.bukkit.configuration.Configuration getRoot()- Specified by:
getRoot
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getParent
public org.bukkit.configuration.ConfigurationSection getParent()- Specified by:
getParent
in interfaceorg.bukkit.configuration.ConfigurationSection
-
get
public java.lang.Object get(java.lang.String s)- Specified by:
get
in interfaceorg.bukkit.configuration.ConfigurationSection
-
get
public java.lang.Object get(java.lang.String s, java.lang.Object o)- Specified by:
get
in interfaceorg.bukkit.configuration.ConfigurationSection
-
set
public void set(java.lang.String s, java.lang.Object o)- Specified by:
set
in interfaceorg.bukkit.configuration.ConfigurationSection
-
createSection
- Specified by:
createSection
in interfaceorg.bukkit.configuration.ConfigurationSection
-
createSection
- Specified by:
createSection
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getString
public java.lang.String getString(java.lang.String s)- Specified by:
getString
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getString
public java.lang.String getString(java.lang.String s, java.lang.String s1)- Specified by:
getString
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isString
public boolean isString(java.lang.String s)- Specified by:
isString
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getInt
public int getInt(java.lang.String s)- Specified by:
getInt
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getInt
public int getInt(java.lang.String s, int i)- Specified by:
getInt
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isInt
public boolean isInt(java.lang.String s)- Specified by:
isInt
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getBoolean
public boolean getBoolean(java.lang.String s)- Specified by:
getBoolean
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getBoolean
public boolean getBoolean(java.lang.String s, boolean b)- Specified by:
getBoolean
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isBoolean
public boolean isBoolean(java.lang.String s)- Specified by:
isBoolean
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getDouble
public double getDouble(java.lang.String s)- Specified by:
getDouble
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getDouble
public double getDouble(java.lang.String s, double v)- Specified by:
getDouble
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isDouble
public boolean isDouble(java.lang.String s)- Specified by:
isDouble
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getLong
public long getLong(java.lang.String s)- Specified by:
getLong
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getLong
public long getLong(java.lang.String s, long l)- Specified by:
getLong
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isLong
public boolean isLong(java.lang.String s)- Specified by:
isLong
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getList
public java.util.List<?> getList(java.lang.String s)- Specified by:
getList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getList
public java.util.List<?> getList(java.lang.String s, java.util.List<?> list)- Specified by:
getList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isList
public boolean isList(java.lang.String s)- Specified by:
isList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getStringList
public java.util.List<java.lang.String> getStringList(java.lang.String s)- Specified by:
getStringList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getIntegerList
public java.util.List<java.lang.Integer> getIntegerList(java.lang.String s)- Specified by:
getIntegerList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getBooleanList
public java.util.List<java.lang.Boolean> getBooleanList(java.lang.String s)- Specified by:
getBooleanList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getDoubleList
public java.util.List<java.lang.Double> getDoubleList(java.lang.String s)- Specified by:
getDoubleList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getFloatList
public java.util.List<java.lang.Float> getFloatList(java.lang.String s)- Specified by:
getFloatList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getLongList
public java.util.List<java.lang.Long> getLongList(java.lang.String s)- Specified by:
getLongList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getByteList
public java.util.List<java.lang.Byte> getByteList(java.lang.String s)- Specified by:
getByteList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getCharacterList
public java.util.List<java.lang.Character> getCharacterList(java.lang.String s)- Specified by:
getCharacterList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getShortList
public java.util.List<java.lang.Short> getShortList(java.lang.String s)- Specified by:
getShortList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getMapList
public java.util.List<java.util.Map<?,?>> getMapList(java.lang.String s)- Specified by:
getMapList
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getObject
public <T> T getObject(java.lang.String s, java.lang.Class<T> aClass)- Specified by:
getObject
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getObject
public <T> T getObject(java.lang.String s, java.lang.Class<T> aClass, T t)- Specified by:
getObject
in interfaceorg.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 interfaceorg.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 interfaceorg.bukkit.configuration.ConfigurationSection
-
getVector
public org.bukkit.util.Vector getVector(java.lang.String s)- Specified by:
getVector
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getVector
public org.bukkit.util.Vector getVector(java.lang.String s, org.bukkit.util.Vector vector)- Specified by:
getVector
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isVector
public boolean isVector(java.lang.String s)- Specified by:
isVector
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getOfflinePlayer
public org.bukkit.OfflinePlayer getOfflinePlayer(java.lang.String s)- Specified by:
getOfflinePlayer
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getOfflinePlayer
public org.bukkit.OfflinePlayer getOfflinePlayer(java.lang.String s, org.bukkit.OfflinePlayer offlinePlayer)- Specified by:
getOfflinePlayer
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isOfflinePlayer
public boolean isOfflinePlayer(java.lang.String s)- Specified by:
isOfflinePlayer
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(java.lang.String s)- Specified by:
getItemStack
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack(java.lang.String s, org.bukkit.inventory.ItemStack itemStack)- Specified by:
getItemStack
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isItemStack
public boolean isItemStack(java.lang.String s)- Specified by:
isItemStack
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getColor
public org.bukkit.Color getColor(java.lang.String s)- Specified by:
getColor
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getColor
public org.bukkit.Color getColor(java.lang.String s, org.bukkit.Color color)- Specified by:
getColor
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isColor
public boolean isColor(java.lang.String s)- Specified by:
isColor
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getLocation
public org.bukkit.Location getLocation(java.lang.String path)- Specified by:
getLocation
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getLocation
public org.bukkit.Location getLocation(java.lang.String path, org.bukkit.Location def)- Specified by:
getLocation
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isLocation
public boolean isLocation(java.lang.String path)- Specified by:
isLocation
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getConfigurationSection
- Specified by:
getConfigurationSection
in interfaceorg.bukkit.configuration.ConfigurationSection
-
isConfigurationSection
public boolean isConfigurationSection(java.lang.String s)- Specified by:
isConfigurationSection
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getDefaultSection
- Specified by:
getDefaultSection
in interfaceorg.bukkit.configuration.ConfigurationSection
-
addDefault
public void addDefault(java.lang.String s, java.lang.Object o)- Specified by:
addDefault
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getComments
public java.util.List<java.lang.String> getComments(java.lang.String path)- Specified by:
getComments
in interfaceorg.bukkit.configuration.ConfigurationSection
-
getInlineComments
public java.util.List<java.lang.String> getInlineComments(java.lang.String path)- Specified by:
getInlineComments
in interfaceorg.bukkit.configuration.ConfigurationSection
-
setComments
public void setComments(java.lang.String path, java.util.List<java.lang.String> comments)- Specified by:
setComments
in interfaceorg.bukkit.configuration.ConfigurationSection
-
setInlineComments
public void setInlineComments(java.lang.String path, java.util.List<java.lang.String> comments)- Specified by:
setInlineComments
in interfaceorg.bukkit.configuration.ConfigurationSection
-