Package net.citizensnpcs.api.persistence
Class EulerAnglePersister
java.lang.Object
net.citizensnpcs.api.persistence.EulerAnglePersister
- All Implemented Interfaces:
Persister<EulerAngle>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an object instance from the givenDataKey.voidsave(EulerAngle angle, DataKey root) Saves the object instance to the givenDataKey.
-
Constructor Details
-
EulerAnglePersister
public EulerAnglePersister()
-
-
Method Details
-
create
Description copied from interface:PersisterCreates an object instance from the givenDataKey. Should not return null unless no data is present.- Specified by:
createin interfacePersister<EulerAngle>- Parameters:
root- The root key to load from- Returns:
- The created instance, or null if no data was present
-
save
Description copied from interface:PersisterSaves the object instance to the givenDataKey.- Specified by:
savein interfacePersister<EulerAngle>- Parameters:
angle- The object instance to saveroot- The key to save into
-