Class MemorySection
java.lang.Object
com.kamikazejam.kamicommon.yaml.AbstractMemorySection<MemorySection>
com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods<MemorySection>
com.kamikazejam.kamicommon.yaml.spigot.MemorySection
- All Implemented Interfaces:
ConfigurationMethods<ConfigurationSection>,ConfigurationSection
- Direct Known Subclasses:
YamlConfiguration
public class MemorySection
extends MemorySectionMethods<MemorySection>
implements ConfigurationSection
-
Constructor Summary
ConstructorsConstructorDescriptionMemorySection(@Nullable org.yaml.snakeyaml.nodes.MappingNode node, @NotNull String fullPath, @Nullable ConfigurationMethods<?> parent) -
Method Summary
Modifier and TypeMethodDescription@NotNull MemorySection@NotNull ConfigurationSequenceSpigotgetItemStack(String key) Supported in Spigot-Backed Config classes, you must cast to ItemStack if return is not null.getItemStack(String key, ItemStack def) booleanisItemStack(String key) @NotNull ItemBuilderparseItemBuilder(@NotNull String key) Parses the subsection at the given key into anItemBuilder.voidvoidvoidsetItemStack(String key, ItemStack stack) Methods inherited from class com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods
addDefault, contains, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, save, save, setBoolean, setByte, setDouble, setFloat, setInt, setInteger, setLong, setShort, setStringMethods inherited from class com.kamikazejam.kamicommon.yaml.AbstractMemorySection
contains, getKeyNode, getKeys, getNode, getNodeTuple, getNodeValue, getObject, internalPut, isPrimitiveWrapper, parseBigDecimal, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kamikazejam.kamicommon.yaml.base.ConfigurationMethods
addDefault, contains, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isChanged, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, setBoolean, setByte, setChanged, setDouble, setFloat, setInt, setInteger, setLong, setShort, setString
-
Constructor Details
-
MemorySection
public MemorySection(@Nullable @Nullable org.yaml.snakeyaml.nodes.MappingNode node, @NotNull @NotNull String fullPath, @Nullable @Nullable ConfigurationMethods<?> parent)
-
-
Method Details
-
getConfigurationSection
- Specified by:
getConfigurationSectionin interfaceConfigurationMethods<ConfigurationSection>
-
getConfigurationSequence
- Specified by:
getConfigurationSequencein interfaceConfigurationMethods<ConfigurationSection>
-
set
- Specified by:
setin interfaceConfigurationMethods<ConfigurationSection>- Overrides:
setin classAbstractMemorySection<MemorySection>
-
put
- Specified by:
putin interfaceConfigurationMethods<ConfigurationSection>- Overrides:
putin classAbstractMemorySection<MemorySection>
-
get
- Specified by:
getin interfaceConfigurationMethods<ConfigurationSection>- Overrides:
getin classMemorySectionMethods<MemorySection>
-
getItemStack
Supported in Spigot-Backed Config classes, you must cast to ItemStack if return is not null.- Specified by:
getItemStackin interfaceConfigurationSection- Returns:
- the ItemStack at the given key, or null if it doesn't exist
-
getItemStack
- Specified by:
getItemStackin interfaceConfigurationSection
-
setItemStack
- Specified by:
setItemStackin interfaceConfigurationSection
-
isItemStack
- Specified by:
isItemStackin interfaceConfigurationSection
-
parseItemBuilder
Description copied from interface:ConfigurationSectionParses the subsection at the given key into anItemBuilder. This is equivalent to using:
-ItemBuilderLoader.load(ConfigurationSection)with the subsection at the given key as the argument.- Specified by:
parseItemBuilderin interfaceConfigurationSection- Parameters:
key- The key of the subsection to parse.- Returns:
- The parsed
ItemBuilder.
-
getCurrentPath
- Specified by:
getCurrentPathin interfaceConfigurationMethods<ConfigurationSection>- Specified by:
getCurrentPathin interfaceConfigurationSection
-