Documentation
¶
Index ¶
- Constants
- func FetchSupportVersions()
- func Init()
- func LoadFont(fontName string)
- func LoadLangVersionMap(langName string, entryList []*model.Entry)
- func LoadLocalSkins()
- func LoadResource(entry *model.Entry) error
- func LoadResourceList(list []*model.Entry)
- func LoadSkinByFile(skinPath string, slim bool) (*draw.Skin, error)
- func LoadSkinByName(name string, uuid string, cache bool) (*draw.Skin, error)
- func LoadSkinByUrl(u string, uuid string, slim bool) (*draw.Skin, error)
Constants ¶
View Source
const ( SkinSuffix = ".png" SkinDelimiter = "!!" )
View Source
const DefaultFont = "Minecraft.ttf"
Variables ¶
This section is empty.
Functions ¶
func FetchSupportVersions ¶
func FetchSupportVersions()
func LoadFont ¶
func LoadFont(fontName string)
LoadFont loads font with specify name, if not exists, there will be a fatal
func LoadLangVersionMap ¶
func LoadLocalSkins ¶
func LoadLocalSkins()
func LoadResource ¶
func LoadResourceList ¶
func LoadSkinByName ¶
LoadSkinByName load the player skin texture by name
if use blessing skin, the uuid should not be empty
TODO 加锁, 同一时间同一uuid/name/url 仅允许一个下载
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.