mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
create user without data
This commit is contained in:
@@ -20,6 +20,13 @@ public interface CosmeticUserProvider {
|
|||||||
*/
|
*/
|
||||||
CosmeticUser createCosmeticUser(UUID playerId, UserData userData);
|
CosmeticUser createCosmeticUser(UUID playerId, UserData userData);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Construct the custom {@link CosmeticUser}.
|
||||||
|
* @param playerId the player uuid
|
||||||
|
* @return the {@link CosmeticUser}
|
||||||
|
*/
|
||||||
|
CosmeticUser createCosmeticUserWithoutData(UUID playerId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the plugin that is providing this {@link CosmeticUserProvider}
|
* Represents the plugin that is providing this {@link CosmeticUserProvider}
|
||||||
* @return the plugin
|
* @return the plugin
|
||||||
@@ -35,6 +42,11 @@ public interface CosmeticUserProvider {
|
|||||||
return new CosmeticUser(playerId, userData);
|
return new CosmeticUser(playerId, userData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public CosmeticUser createCosmeticUserWithoutData(UUID playerId) {
|
||||||
|
return new CosmeticUser(playerId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Plugin getProviderPlugin() {
|
public Plugin getProviderPlugin() {
|
||||||
return HMCCosmeticsPlugin.getInstance();
|
return HMCCosmeticsPlugin.getInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user