Class Vector3fPersister

java.lang.Object
net.citizensnpcs.api.persistence.Vector3fPersister
All Implemented Interfaces:
Persister<org.joml.Vector3fc>

public class Vector3fPersister extends Object implements Persister<org.joml.Vector3fc>
  • Constructor Details

    • Vector3fPersister

      public Vector3fPersister()
  • Method Details

    • create

      public org.joml.Vector3fc 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<org.joml.Vector3fc>
      Parameters:
      root - The root key to load from
      Returns:
      The created instance, or null if no data was present
    • save

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