Class NonPlayerAccountAccessor.NonPlayerAccountCreateContext
java.lang.Object
me.lokka30.treasury.api.economy.account.accessor.NonPlayerAccountAccessor.NonPlayerAccountCreateContext
- Enclosing class:
- NonPlayerAccountAccessor
Represents a class, holder of data, needed to create/retrieve a
NonPlayerAccount- Since:
- 2.0.0
- Author:
- MrIvanPlays
-
Constructor Summary
ConstructorsConstructorDescriptionNonPlayerAccountCreateContext(@NotNull NamespacedKey identifier, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescription@NotNull NamespacedKeyReturns theidentifierof thenon player accountcreated/retrieved.@Nullable StringgetName()Returns the (new) name of thenon player accountcreated.
-
Constructor Details
-
NonPlayerAccountCreateContext
public NonPlayerAccountCreateContext(@NotNull @NotNull NamespacedKey identifier, @Nullable @Nullable String name)
-
-
Method Details
-
getIdentifier
Returns theidentifierof thenon player accountcreated/retrieved.- Returns:
- string identifier
-
getName
Returns the (new) name of thenon player accountcreated.WARNING: Names are not identifiers of non player accounts. The
getIdentifier()is.- Returns:
- name
-