Package net.citizensnpcs.api.persistence
Class PotionEffectPersister
java.lang.Object
net.citizensnpcs.api.persistence.PotionEffectPersister
- All Implemented Interfaces:
- Persister<PotionEffect>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates an object instance from the givenDataKey.voidsave(PotionEffect effect, DataKey root) Saves the object instance to the givenDataKey.
- 
Constructor Details- 
PotionEffectPersisterpublic PotionEffectPersister()
 
- 
- 
Method Details- 
createDescription copied from interface:PersisterCreates an object instance from the givenDataKey. Should not return null unless no data is present.- Specified by:
- createin interface- Persister<PotionEffect>
- Parameters:
- root- The root key to load from
- Returns:
- The created instance, or null if no data was present
 
- 
saveDescription copied from interface:PersisterSaves the object instance to the givenDataKey.- Specified by:
- savein interface- Persister<PotionEffect>
- Parameters:
- effect- The object instance to save
- root- The key to save into
 
 
-