classstableSource
@API(status = STABLE)
public final class Skin

A 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)
Parameters
skinUrlString
modelSkinModel
capeUrlString

Methods

public String capeUrl()
Returns
String
public boolean equals(Object o)
Parameters
oObject
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.