Content manipulation

(1min read) Basic information regarding content manipulation and access.

Section

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.

Comments

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?

For those who used Spigot/BungeeCord API

Here's a method name translation table to get started with the API quicker than ever:

Up to our knowledge, all methods present in Spigot/BungeeCord file API are also present in BoostedYAML with the same defaults.

Last updated