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
ConstructorDescriptionNonPlayerAccountCreateContext
(@NotNull NamespacedKey identifier, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescription@NotNull NamespacedKey
Returns theidentifier
of thenon player account
created/retrieved.@Nullable String
getName()
Returns the (new) name of thenon player account
created.
-
Constructor Details
-
NonPlayerAccountCreateContext
public NonPlayerAccountCreateContext(@NotNull @NotNull NamespacedKey identifier, @Nullable @Nullable String name)
-
-
Method Details
-
getIdentifier
Returns theidentifier
of thenon player account
created/retrieved.- Returns:
- string identifier
-
getName
Returns the (new) name of thenon player account
created.WARNING: Names are not identifiers of non player accounts. The
getIdentifier()
is.- Returns:
- name
-