resource

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	// FormatVersion defines the current version of the manifest. This is currently always 2.
	FormatVersion int `json:"format_version"`
	// Header is the header of a resource pack. It contains information that applies to the entire resource
	// pack, such as the name of the resource pack.
	Header gtresource.Header `json:"header"`
	// Modules describes the modules that comprise the pack. Each entry here defines one of the kinds of
	// contents of the pack.
	Modules []gtresource.Module `json:"modules"`
	// Dependencies describes the packs that this pack depends on in order to work.
	Dependencies []gtresource.Dependency `json:"dependencies,omitempty"`
	// Capabilities are the different features that the pack makes use of that aren't necessarily enabled by
	// default. For a list of options, see below.
	Capabilities []gtresource.Capability `json:"capabilities,omitempty"`

	// Subpacks are the packs's subpacks.
	Subpacks []Subpack `json:"subpacks,omitempty"`
}

Manifest contains all the basic information about the pack that Minecraft needs to identify it.

type Subpack

type Subpack struct {
	FolderName string `json:"folder_name,omitempty"`
	Name       string `json:"name,omitempty"`
	MemoryTier int    `json:"memory_tier,omitempty"`
}

Jump to

Keyboard shortcuts

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