schema

package
v0.0.0-...-2a34177 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerPackSchemaVersion = "3.4"
	MainClass               = "cpw.mods.modlauncher.Launcher"
)

Variables

View Source
var (
	ModTypeRegular = ModEnum("Regular")
	ModTypeExtract = ModEnum("Extract")
)

Functions

This section is empty.

Types

type ConfigType

type ConfigType struct {
	URL         []*URL `xml:"URL"`
	Path        string `xml:"Path"`
	NoOverwrite bool   `xml:"NoOverwrite"`
	MD5         string `xml:"MD5"`
}

ConfigType ...

type Curse

type Curse struct {
	ProjectAttr     string `xml:"project,attr,omitempty"`
	FileAttr        int    `xml:"file,attr,omitempty"`
	TypeAttr        string `xml:"type,attr,omitempty"`
	AutoupgradeAttr bool   `xml:"autoupgrade,attr,omitempty"`
}

Curse ...

type CurseFile

type CurseFile struct {
	ProjectID int  `json:"projectID"`
	FileID    int  `json:"fileID"`
	Required  bool `json:"required"`
}

type CurseManifest

type CurseManifest struct {
	Minecraft struct {
		Version    string `json:"version"`
		ModLoaders []struct {
			ID      string `json:"id"`
			Primary bool   `json:"primary"`
		} `json:"modLoaders"`
	} `json:"minecraft"`

	ManifestType    string `json:"manifestType"`
	ManifestVersion int    `json:"manifestVersion"`
	Name            string `json:"name"`
	Version         string `json:"version"`
	Author          string `json:"author"`

	Files []CurseFile `json:"files"`

	Overrides string `json:"overrides"`
}

type Import

type Import struct {
	UrlAttr string `xml:"url,attr,omitempty"`
	Value   string `xml:",chardata"`
}

Import ...

type LoaderType

type LoaderType struct {
	TypeAttr      string `xml:"type,attr"`
	VersionAttr   string `xml:"version,attr"`
	LoadOrderAttr int    `xml:"loadOrder,attr"`
}

LoaderType ...

type MetaType

type MetaType struct {
}

MetaType ...

type ModEnum

type ModEnum string

ModEnum ...

type ModType

type ModType struct {
	InRootAttr     bool   `xml:"inRoot,attr,omitempty"`
	OrderAttr      int    `xml:"order,attr,omitempty"`
	KeepMetaAttr   bool   `xml:"keepMeta,attr,omitempty"`
	LaunchArgsAttr string `xml:"launchArgs,attr,omitempty"`
	JreArgsAttr    string `xml:"jreArgs,attr,omitempty"`
	*ModEnum       `xml:",chardata"`
}

ModType ...

type ModuleGenericType

type ModuleGenericType struct {
	NameAttr    string    `xml:"name,attr"`
	IdAttr      string    `xml:"id,attr"`
	DependsAttr string    `xml:"depends,attr,omitempty"`
	SideAttr    string    `xml:"side,attr,omitempty"`
	URL         []*URL    `xml:"URL"`
	Curse       *Curse    `xml:"Curse"`
	LoadPrefix  string    `xml:"LoadPrefix,omitempty"`
	ModPath     string    `xml:"ModPath,omitempty"`
	Size        int64     `xml:"Size"`
	Required    *Required `xml:"Required"`
	ModType     *ModType  `xml:"ModType"`
	MD5         string    `xml:"MD5"`
	Meta        *MetaType `xml:"Meta"`
}

ModuleGenericType ...

type ModuleType

type ModuleType struct {
	Submodule  []*ModuleGenericType `xml:"Submodule"`
	ConfigFile []*ConfigType        `xml:"ConfigFile"`
	*ModuleGenericType
}

ModuleType ...

type Required

type Required struct {
	IsDefaultAttr bool `xml:"isDefault,attr,omitempty"`
	Value         bool `xml:",chardata"`
}

Required ...

type ServerPack

type ServerPack struct {
	VersionAttr string        `xml:"version,attr"`
	Server      []*ServerType `xml:"Server"`
}

ServerPack ...

type ServerType

type ServerType struct {
	IdAttr            string        `xml:"id,attr"`
	AbstractAttr      bool          `xml:"abstract,attr,omitempty"`
	NameAttr          string        `xml:"name,attr"`
	NewsUrlAttr       string        `xml:"newsUrl,attr,omitempty"`
	IconUrlAttr       string        `xml:"iconUrl,attr,omitempty"`
	VersionAttr       string        `xml:"version,attr"`
	ServerAddressAttr string        `xml:"serverAddress,attr,omitempty"`
	GenerateListAttr  bool          `xml:"generateList,attr,omitempty"`
	AutoConnectAttr   bool          `xml:"autoConnect,attr,omitempty"`
	RevisionAttr      string        `xml:"revision,attr"`
	MainClassAttr     string        `xml:"mainClass,attr,omitempty"`
	LauncherTypeAttr  string        `xml:"launcherType,attr,omitempty"`
	LibOverridesAttr  string        `xml:"libOverrides,attr,omitempty"`
	ServerClassAttr   string        `xml:"serverClass,attr,omitempty"`
	Loader            []*LoaderType `xml:"Loader"`
	Import            []*Import     `xml:"Import"`
	Module            []*ModuleType `xml:"Module"`
}

ServerType ...

type URL

type URL struct {
	PriorityAttr int    `xml:"priority,attr,omitempty"`
	Value        string `xml:",chardata"`
}

URL ...

Jump to

Keyboard shortcuts

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