Documentation ¶
Index ¶
- type ClientEntity
- type ClientEntityDescription
- type ClientEntityFile
- type Geometry
- type Pack
- func (p *Pack) AddEntity(dir, name string, texture *image.RGBA, geometry *utils.SkinGeometryFile, ...)
- func (p *Pack) AddPlayer(id string, skinTexture *image.RGBA, capeTexture *image.RGBA, capeID string, ...)
- func (p *Pack) WriteTo(w io.Writer)
- func (p *Pack) WriteToDir(fs utils.WriterFS, dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientEntity ¶
type ClientEntity struct {
Description *ClientEntityDescription `json:"description"`
}
type ClientEntityDescription ¶
type ClientEntityDescription struct { Identifier string `json:"identifier"` Materials map[string]string `json:"materials"` Geometry map[string]string `json:"geometry"` Textures map[string]string `json:"textures"` Scripts map[string]any `json:"scripts,omitempty"` Animations map[string]string `json:"animations,omitempty"` RenderControllers []any `json:"render_controllers"` }
type ClientEntityFile ¶
type ClientEntityFile struct { FormatVersion string `json:"format_version"` ClientEntity *ClientEntity `json:"minecraft:client_entity"` }
type Geometry ¶
type Geometry struct { Description utils.SkinGeometryDescription `json:"description"` Bones []any `json:"bones"` }
Click to show internal directories.
Click to hide internal directories.