skinconverter

package
v1.52.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCapeTexture added in v1.49.0

func WriteCapeTexture(fs utils.WriterFS, skinName string, skin *Skin) error

func WriteSkinTexture added in v1.49.0

func WriteSkinTexture(fs utils.WriterFS, skinName string, skin *Skin) error

Types

type Skin

type Skin struct {
	*protocol.Skin
}

func (*Skin) Complex

func (skin *Skin) Complex() bool

func (*Skin) Hash

func (skin *Skin) Hash() string

func (*Skin) HaveAnimations

func (skin *Skin) HaveAnimations() bool

func (*Skin) HaveCape

func (skin *Skin) HaveCape() bool

func (*Skin) HaveGeometry

func (skin *Skin) HaveGeometry() bool

func (*Skin) HaveTint

func (skin *Skin) HaveTint() bool

func (*Skin) ParseGeometry

func (skin *Skin) ParseGeometry() (identifier string, format_version string, geometry *SkinGeometry, err error)

type SkinGeometry

type SkinGeometry struct {
	Description SkinGeometryDescription `json:"description"`
	Bones       json.RawMessage         `json:"bones"`
}

type SkinGeometryDescription

type SkinGeometryDescription struct {
	Identifier          string      `json:"identifier"`
	TextureWidth        json.Number `json:"texture_width"`
	TextureHeight       json.Number `json:"texture_height"`
	VisibleBoundsWidth  float64     `json:"visible_bounds_width"`
	VisibleBoundsHeight float64     `json:"visible_bounds_height"`
	VisibleBoundsOffset []float64   `json:"visible_bounds_offset,omitempty"`
}

type SkinGeometryFile

type SkinGeometryFile struct {
	FormatVersion string         `json:"format_version"`
	Geometry      []SkinGeometry `json:"minecraft:geometry"`
}

type SkinGeometry_Old

type SkinGeometry_Old struct {
	SkinGeometryDescription
	Bones json.RawMessage `json:"bones"`
}

type SkinMeta

type SkinMeta struct {
	SkinID        string
	PlayFabID     string
	PremiumSkin   bool
	PersonaSkin   bool
	CapeID        string
	SkinColour    string
	ArmSize       string
	Trusted       bool
	PersonaPieces []protocol.PersonaPiece
}

type SkinPack

type SkinPack struct {
	Name string
	// contains filtered or unexported fields
}

func NewSkinPack

func NewSkinPack(name string) *SkinPack

func (*SkinPack) AddSkin

func (s *SkinPack) AddSkin(skin *Skin)

func (*SkinPack) Latest

func (s *SkinPack) Latest() *Skin

func (*SkinPack) Save

func (sp *SkinPack) Save(fs utils.WriterFS) error

Jump to

Keyboard shortcuts

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