Documentation ¶
Index ¶
- Constants
- func Init(tick TickFunc, sync chan<- func())
- func IsActive(name string) bool
- func LoadZip(name string) error
- func Open(plugin, name string) (io.ReadCloser, error)
- func OpenAll(plugin, name string) ([]io.ReadCloser, error)
- func RemovePack(name string)
- func Search(plugin, path, ext string) []string
- type TickFunc
Constants ¶
View Source
const (
ResourcesVersion = "15w37a"
)
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open(plugin, name string) (io.ReadCloser, error)
Open searches through all open resource packs for the requested file. If a file exists but fails to open that error will be returned instead of the standard 'file not found' but only if another file couldn't be found to be used in its place.
func OpenAll ¶
func OpenAll(plugin, name string) ([]io.ReadCloser, error)
OpenAll searches through all open resource packs for the requested file. If a file exists but fails to open that error will be returned instead of the standard 'file not found' but only if another file couldn't be found to be used in its place. Unlike Open this will return all matching files
func RemovePack ¶
func RemovePack(name string)
Types ¶
Click to show internal directories.
Click to hide internal directories.