mcworld

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCWorld

type MCWorld struct {
	Path string // The full path to a valid .mcworld zip file
}

MCWorld is a .mcworld file

func (MCWorld) Check

func (w MCWorld) Check() error

func (MCWorld) Open

func (w MCWorld) Open() (*zip.ReadCloser, error)

Open checks the zip file to validate the presence of leve.dat and levelname.txt before returning the opened zip.Reader. The caller must close the zip.Reader.

type ZipOpener

type ZipOpener interface {
	Open() (*zip.ReadCloser, error)
}

ZipOpener returns a zip.ReadCloser containing world data.

Jump to

Keyboard shortcuts

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