loader

package
v0.0.0-...-e57dd20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SkinSuffix    = ".png"
	SkinDelimiter = "!!"
)
View Source
const DefaultFont = "Minecraft.ttf"

Variables

This section is empty.

Functions

func FetchSupportVersions

func FetchSupportVersions()

func Init

func Init()

func LoadFont

func LoadFont(fontName string)

LoadFont loads font with specify name, if not exists, there will be a fatal

func LoadLangVersionMap

func LoadLangVersionMap(langName string, entryList []*model.Entry)

func LoadLocalSkins

func LoadLocalSkins()

func LoadResource

func LoadResource(entry *model.Entry) error

func LoadResourceList

func LoadResourceList(list []*model.Entry)

func LoadSkinByFile

func LoadSkinByFile(skinPath string, slim bool) (*draw.Skin, error)

func LoadSkinByName

func LoadSkinByName(name string, uuid string, cache bool) (*draw.Skin, error)

LoadSkinByName load the player skin texture by name

if use blessing skin, the uuid should not be empty

TODO 加锁, 同一时间同一uuid/name/url 仅允许一个下载

func LoadSkinByUrl

func LoadSkinByUrl(u string, uuid string, slim bool) (*draw.Skin, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL