pack

package
v0.0.0-...-c3b91b4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey() []byte

func GenerateKeyFromSeed

func GenerateKeyFromSeed(seed []byte) []byte

Types

type OTF

type OTF struct {
	// contains filtered or unexported fields
}

func (*OTF) Listener

func (o *OTF) Listener() *minecraft.Listener

Listener ...

func (*OTF) SetListener

func (o *OTF) SetListener(listener *minecraft.Listener)

SetListener ...

func (*OTF) Start

func (o *OTF) Start() error

Start ...

type OTFConfig

type OTFConfig struct {
	OrgName        string
	RepoName       string
	Branch         string
	PAT            string
	UpdateInterval time.Duration
}

func (OTFConfig) New

func (conf OTFConfig) New(log *slog.Logger) *OTF

type ResourcePack

type ResourcePack struct {
	// contains filtered or unexported fields
}

func LoadResourcePack

func LoadResourcePack(path string) (*ResourcePack, error)

func LoadResourcePackFromBytes

func LoadResourcePackFromBytes(packBytes []byte) (*ResourcePack, error)

func (*ResourcePack) CompressPNGFiles

func (r *ResourcePack) CompressPNGFiles() error

func (*ResourcePack) ComputeHash

func (r *ResourcePack) ComputeHash() []byte

func (*ResourcePack) Decrypt

func (r *ResourcePack) Decrypt(key []byte) error

func (*ResourcePack) DeleteFile

func (r *ResourcePack) DeleteFile(fileName string)

func (*ResourcePack) DeleteFilesByPrefix

func (r *ResourcePack) DeleteFilesByPrefix(prefix string)

func (*ResourcePack) DeleteFilesBySuffix

func (r *ResourcePack) DeleteFilesBySuffix(suffix string)

func (*ResourcePack) Encrypt

func (r *ResourcePack) Encrypt(key []byte) error

func (*ResourcePack) MinifyJSONFiles

func (r *ResourcePack) MinifyJSONFiles() error

func (*ResourcePack) RegenerateUUID

func (r *ResourcePack) RegenerateUUID(seed []byte) error

func (*ResourcePack) Save

func (r *ResourcePack) Save(path string) error

func (*ResourcePack) SaveToBytes

func (r *ResourcePack) SaveToBytes() ([]byte, error)

SaveToBytes returns the zip file as a byte slice without creating a file

func (*ResourcePack) UUID

func (r *ResourcePack) UUID() string

Jump to

Keyboard shortcuts

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