Documentation
¶
Index ¶
- func WriteCapeTexture(fs utils.WriterFS, skinName string, skin *Skin) error
- func WriteSkinTexture(fs utils.WriterFS, skinName string, skin *Skin) error
- type Skin
- func (skin *Skin) Complex() bool
- func (skin *Skin) Hash() string
- func (skin *Skin) HaveAnimations() bool
- func (skin *Skin) HaveCape() bool
- func (skin *Skin) HaveGeometry() bool
- func (skin *Skin) HaveTint() bool
- func (skin *Skin) ParseGeometry() (identifier string, format_version string, geometry *SkinGeometry, err error)
- type SkinGeometry
- type SkinGeometryDescription
- type SkinGeometryFile
- type SkinGeometry_Old
- type SkinMeta
- type SkinPack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteCapeTexture ¶ added in v1.49.0
Types ¶
type Skin ¶
func (*Skin) HaveAnimations ¶
func (*Skin) HaveGeometry ¶
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 SkinPack ¶
type SkinPack struct {
Name string
// contains filtered or unexported fields
}
func NewSkinPack ¶
Click to show internal directories.
Click to hide internal directories.