Content manipulation
(1min read) Basic information regarding content manipulation and access.
Last updated
(1min read) Basic information regarding content manipulation and access.
Last updated
Section class conains getters, setters, removers and checkers.
To access content inside sections, you must use routes (click to read more about how to access data). Format of the keys in the section depends on the chosen key format.
You can use methods provided by the Block class to manipulate with comments.
Lowlevel API for advanced users:
You can also use low-level comment manipulators available under Comments class. Be careful, it is advised to never use position other than Position#BEFORE
. Always refer to the method documentation for more information.
WIP for version 1.4?
Here's a method name translation table to get started with the API quicker than ever:
Spigot/BungeeCord API method | BoostedYAML method for KeyFormat#STRING | BoostedYAML method for KeyFormat#OBJECT |
---|---|---|
Up to our knowledge, all methods present in Spigot/BungeeCord file API are also present in BoostedYAML with the same defaults.
getX(String)
getX(String)
getX(Route)
getConfigurationSection(String)
getSection(String)
getSection(Route)
getKeys(boolean)
getRoutesAsStrings(boolean)
getRoutes(boolean)
getValues(boolean)
getStringRouteMappedValues(boolean)
getRouteMappedValues(boolean)
getPath()
getRouteAsString()
getRoute()
getName()
getNameAsString()
getName()