Interface CosmeticLocation<T>
- Type Parameters:
T- Input Type
public interface CosmeticLocation<T>
Represents a specific entry for a cosmetic.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CosmeticLocation<?>getByFullKey(@Nullable String fullKey) Fetches a CosmeticLocation bygetFullKey().@NotNull CompletionCriteriaFetches the criteria required to unlock this CosmeticLocation.@NotNull StringFetches the display name of this cosmetic location.default @NotNull StringFetches the full key.getInput()Fetches the input used inCosmetic.run(Location, CosmeticLocation).Fetches the input type of this CosmeticLocation.@NotNull StringgetKey()Fetches the key of this cosmetic location.default @NotNull StringFetches the namespace of this cosmetic location that would belong to parentCosmetic.@NotNull CosmeticFetches the parent of this cosmetic location.Fetches the class ofgetParent().@NotNull RarityFetches the rarity of this CosmeticLocation.default booleanisUnlocked(@NotNull Player p) Whether this Player has unlocked this cosmetic.
-
Method Details
-
getNamespace
Fetches the namespace of this cosmetic location that would belong to parentCosmetic.- Returns:
- Cosmetic Namespace
-
isUnlocked
Whether this Player has unlocked this cosmetic.- Parameters:
p- Player to test- Returns:
- true if unlocked, else false
-
getKey
Fetches the key of this cosmetic location.- Returns:
- Cosmetic Location Key
-
getDisplayName
Fetches the display name of this cosmetic location.- Returns:
- Cosmetic Location Display Name
-
getParent
Fetches the parent of this cosmetic location.- Returns:
- Parent Cosmetic
-
getParentClass
Fetches the class ofgetParent().- Returns:
- Parent Cosmetic Class
-
getRarity
Fetches the rarity of this CosmeticLocation.- Returns:
- Cosmetic Rarity
-
getCompletionCriteria
Fetches the criteria required to unlock this CosmeticLocation.- Returns:
- Completion Criteria
-
getFullKey
Fetches the full key.
The full key is constructed as "
getNamespace():getKey()".- Returns:
- Full Key
-
getInputType
Fetches the input type of this CosmeticLocation.- Returns:
- Class of Input Type
-
getInput
Fetches the input used inCosmetic.run(Location, CosmeticLocation).- Returns:
- CosmeticLocation Input for Parent Cosmetic
-
getByFullKey
Fetches a CosmeticLocation bygetFullKey().- Parameters:
fullKey- Full Key- Returns:
- Cosmetic Location
-