@API(status = STABLE)
public final class SkinA resolved skin (and optional cape) for a Minecraft account, fetched from Mojang's session servers.
skinUrl is the direct URL to the skin texture (hosted on textures.minecraft.net)
model is the player model the skin should be rendered with
capeUrl is the direct URL to the cape texture, or null if the account has no cape
Constructors
public Skin(String skinUrl, SkinModel model, String capeUrl)Methods
String capeUrl()boolean equals(Object)boolean hasCape()int hashCode()SkinModel model()String skinUrl()String toString()public String capeUrl()| Returns | ||
|---|---|---|
String | ||
public boolean equals(Object o)| Parameters | ||
|---|---|---|
o | Object | |
| Returns | ||
boolean | ||
Overrides Object.equals()
public boolean hasCape()| Returns | ||
|---|---|---|
boolean | ||
public int hashCode()| Returns | ||
|---|---|---|
int | ||
Overrides Object.hashCode()
public SkinModel model()| Returns | ||
|---|---|---|
SkinModel | ||
public String skinUrl()| Returns | ||
|---|---|---|
String | ||
public String toString()| Returns | ||
|---|---|---|
String | ||
Overrides Object.toString()
Used by
Methods of other types that accept or return Skin.