Documentation ¶
Index ¶
- Constants
- Variables
- func IsAlex(uuid string) bool
- func IsName(name string) bool
- func IsUUID(uuid string) bool
- func Model(skin Skin, part SkinPart) [faceCount]image.Rectangle
- func ParseUUID(uuid string) string
- func SkinURL(player string) string
- func ToLower(name string) string
- type Face
- type Profile
- type Skin
- type SkinMeta
- type SkinPart
- type SkinProfile
Constants ¶
View Source
const (
LegacyURL = "http://skins.minecraft.net/MinecraftSkins/%s.png"
)
Variables ¶
View Source
var AlexArmModel = [faceCount]image.Rectangle{
bounds(14, 16),
relative(4, 4, 3, 12),
relative(11, 4, 3, 12),
relative(4, 0, 3, 4),
relative(7, 0, 3, 4),
relative(7, 4, 4, 12),
relative(0, 4, 4, 12),
}
View Source
var BodyModel = [faceCount]image.Rectangle{
bounds(24, 16),
relative(4, 4, 8, 12),
relative(16, 4, 8, 12),
relative(4, 0, 8, 4),
relative(12, 0, 8, 4),
relative(12, 4, 4, 12),
relative(0, 4, 4, 12),
}
View Source
var HeadModel = [faceCount]image.Rectangle{
bounds(32, 16),
relative(8, 8, 8, 8),
relative(24, 8, 8, 8),
relative(8, 0, 8, 8),
relative(16, 0, 8, 8),
relative(16, 8, 8, 8),
relative(0, 8, 8, 8),
}
View Source
var LimbModel = [faceCount]image.Rectangle{
bounds(16, 16),
relative(4, 4, 4, 12),
relative(12, 4, 4, 12),
relative(4, 0, 4, 4),
relative(8, 0, 4, 4),
relative(8, 4, 4, 12),
relative(0, 4, 4, 12),
}
Functions ¶
Types ¶
type Profile ¶
func FetchProfile ¶
type Skin ¶
type SkinProfile ¶
func FetchSkin ¶
func FetchSkin(uuid string) (p SkinProfile, err error)
Click to show internal directories.
Click to hide internal directories.