-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cbc217
commit 4ff5489
Showing
17 changed files
with
101 additions
and
112 deletions.
There are no files selected for viewing
65 changes: 49 additions & 16 deletions
65
api/src/main/java/de/oliver/fancynpcs/api/skins/SkinData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,58 @@ | ||
package de.oliver.fancynpcs.api.skins; | ||
|
||
public record SkinData( | ||
String identifier, | ||
SkinType type, | ||
SkinVariant variant, | ||
public class SkinData { | ||
|
||
String textureValue, | ||
String textureSignature | ||
) { | ||
private String identifier; | ||
private SkinVariant variant; | ||
|
||
private String textureValue; | ||
private String textureSignature; | ||
|
||
public SkinData(String identifier, SkinVariant variant, String textureValue, String textureSignature) { | ||
this.identifier = identifier; | ||
this.variant = variant; | ||
this.textureValue = textureValue; | ||
this.textureSignature = textureSignature; | ||
} | ||
|
||
public SkinData(String identifier, SkinVariant variant) { | ||
this(identifier, variant, null, null); | ||
} | ||
|
||
public String getIdentifier() { | ||
return identifier; | ||
} | ||
|
||
public void setIdentifier(String identifier) { | ||
this.identifier = identifier; | ||
} | ||
|
||
public SkinVariant getVariant() { | ||
return variant; | ||
} | ||
|
||
public void setVariant(SkinVariant variant) { | ||
this.variant = variant; | ||
} | ||
|
||
public String getTextureValue() { | ||
return textureValue; | ||
} | ||
|
||
public void setTextureValue(String textureValue) { | ||
this.textureValue = textureValue; | ||
} | ||
|
||
public String getTextureSignature() { | ||
return textureSignature; | ||
} | ||
|
||
public void setTextureSignature(String textureSignature) { | ||
this.textureSignature = textureSignature; | ||
} | ||
|
||
public enum SkinVariant { | ||
SLIM, | ||
DEFAULT | ||
} | ||
|
||
public enum SkinType { | ||
PLACEHOLDER, | ||
USERNAME, | ||
UUID, | ||
URL, | ||
FILE, | ||
VALUE_SIGNATURE | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.