resourcepack

package
v0.0.0-...-fcffdc5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(files map[string]string, output string) (e error)

Types

type Resource

type Resource struct {
	Name     string
	Data     []byte
	Modified time.Time
}

func (Resource) IsIcon

func (r Resource) IsIcon() bool

func (Resource) IsMap

func (r Resource) IsMap() bool

func (Resource) IsWeb

func (r Resource) IsWeb() bool

type ResourcePack

type ResourcePack struct {
	Resources map[string]Resource
}

func Load

func Load(filename string) (_ *ResourcePack, e error)

func (*ResourcePack) Icons

func (p *ResourcePack) Icons() (icons []string)

func (*ResourcePack) Resource

func (p *ResourcePack) Resource(name string) (Resource, error)

Jump to

Keyboard shortcuts

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