- All Implemented Interfaces:
- Persister<net.kyori.adventure.text.Component>
public class ComponentPersister
extends Object
implements Persister<net.kyori.adventure.text.Component> 
- 
Constructor SummaryConstructors 
- 
Method Summary
net.kyori.adventure.text.Component
 
Creates an object instance from the given  DataKey. 
 void
 save(net.kyori.adventure.text.Component text,
 DataKey root)
Saves the object instance to the given  DataKey. 
 
 
 
 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
Constructor Details
- 
ComponentPersisterpublic ComponentPersister() 
 
- 
Method Details
- 
createpublic net.kyori.adventure.text.Component create(DataKey root) Creates an object instance from the given  DataKey. Should not return null unless no data is present. 
- Specified by:
- createin interface- Persister<net.kyori.adventure.text.Component>
- Parameters:
- root- The root key to load from
- Returns:
- The created instance, or null if no data was present
 
- 
savepublic void save(net.kyori.adventure.text.Component text,
 DataKey root) Saves the object instance to the given  DataKey. 
- Specified by:
- savein interface- Persister<net.kyori.adventure.text.Component>
- Parameters:
- text- The object instance to save
- root- The key to save into