Class EulerAnglePersister

java.lang.Object
net.citizensnpcs.api.persistence.EulerAnglePersister
All Implemented Interfaces:
Persister<EulerAngle>

public class EulerAnglePersister extends Object implements Persister<EulerAngle>
  • Constructor Details

    • EulerAnglePersister

      public EulerAnglePersister()
  • Method Details

    • create

      public EulerAngle create(DataKey root)
      Description copied from interface: Persister
      Creates an object instance from the given DataKey. Should not return null unless no data is present.
      Specified by:
      create in interface Persister<EulerAngle>
      Parameters:
      root - The root key to load from
      Returns:
      The created instance, or null if no data was present
    • save

      public void save(EulerAngle angle, DataKey root)
      Description copied from interface: Persister
      Saves the object instance to the given DataKey.
      Specified by:
      save in interface Persister<EulerAngle>
      Parameters:
      angle - The object instance to save
      root - The key to save into