Interface PlayerValueFactory<V>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PlayerValueFactory<V>
Factory for creating default player values when no persisted data exists.

The provided UUID is the player's unique identifier and must be used to create a value associated with that specific player.

  • Method Summary

    Modifier and Type
    Method
    Description
    create(UUID uniqueId)
    Creates a default value for the given player.
  • Method Details

    • create

      V create(UUID uniqueId)
      Creates a default value for the given player.
      Parameters:
      uniqueId - the player's UUID, never null
      Returns:
      a new non-null value instance