dev

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: BSD-2-Clause Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOutdatedCache = errors.New("outdated cache")
View Source
var PlatformArchitectury = develop.DevPlatform{Name: "Architectury"}
View Source
var (
	PlatformFabric = develop.DevPlatform{Name: "Fabric", Sub: "fabric"}
)
View Source
var (
	PlatformForge = develop.DevPlatform{Name: "Forge", Sub: "forge"}
)
View Source
var (
	PlatformNeoForge = develop.DevPlatform{Name: "NeoForge", Sub: "neoforge"}
)
View Source
var (
	PlatformQuilt = develop.DevPlatform{Name: "Quilt", Sub: "quilt"}
)

Functions

func ForArchitectury

func ForArchitectury(conf config.DevelopConfig, cache string) develop.Develop

func ForFabric

func ForFabric(conf config.DevelopConfig, cache string) develop.Develop

func ForForge

func ForForge(conf config.DevelopConfig, cache string) develop.Develop

func ForNeoForge

func ForNeoForge(conf config.DevelopConfig, cache string) develop.Develop

func ForQuilt

func ForQuilt(conf config.DevelopConfig, cache string) develop.Develop

Types

type Architectury

type Architectury struct {
	Conf         config.ArchitecturyDevelopConfig
	Meta         *ArchitecturyMeta
	Cache        string
	SubPlatforms map[develop.DevPlatform]develop.Develop
}

func (*Architectury) FetchCalls

func (f *Architectury) FetchCalls() []develop.DevFetch

func (*Architectury) LatestLoaderVersion added in v0.0.14

func (f *Architectury) LatestLoaderVersion(_ string) (string, error)

func (*Architectury) LatestVersion

func (f *Architectury) LatestVersion(prop develop.PropVersion, mcVersion string) (string, bool)

func (*Architectury) Platform

func (f *Architectury) Platform() develop.DevPlatform

func (*Architectury) ReadVersionFile

func (f *Architectury) ReadVersionFile(tree fs.FS, name string) (map[develop.PropVersion]string, error)

func (*Architectury) ReadVersions added in v0.0.9

func (f *Architectury) ReadVersions(r io.Reader) (map[develop.PropVersion]string, error)

func (*Architectury) SubPlatformNames

func (f *Architectury) SubPlatformNames() []string

func (*Architectury) ValidTree

func (f *Architectury) ValidTree(tree fs.FS) bool

type ArchitecturyMeta

type ArchitecturyMeta struct {
	Api shared.ModrinthVersionList
	// contains filtered or unexported fields
}

type Fabric

type Fabric struct {
	Conf  config.FabricDevelopConfig
	Meta  *FabricMeta
	Cache string
}

func (*Fabric) FetchApi added in v0.0.12

func (f *Fabric) FetchApi() (err error)

func (*Fabric) FetchCalls

func (f *Fabric) FetchCalls() []develop.DevFetch

func (*Fabric) FetchGame added in v0.0.12

func (f *Fabric) FetchGame() (err error)

func (*Fabric) FetchLoader added in v0.0.12

func (f *Fabric) FetchLoader() (err error)

func (*Fabric) FetchYarn added in v0.0.12

func (f *Fabric) FetchYarn() (err error)

func (*Fabric) LatestLoaderVersion added in v0.0.13

func (f *Fabric) LatestLoaderVersion(_ string) (string, error)

func (*Fabric) LatestVersion

func (f *Fabric) LatestVersion(prop develop.PropVersion, mcVersion string) (string, bool)

func (*Fabric) Platform

func (f *Fabric) Platform() develop.DevPlatform

func (*Fabric) ReadVersionFile

func (f *Fabric) ReadVersionFile(tree fs.FS, name string) (map[develop.PropVersion]string, error)

func (*Fabric) ValidTree

func (f *Fabric) ValidTree(tree fs.FS) bool

type FabricMeta

type FabricMeta struct {
	Game   meta.FabricGameMeta
	Yarn   meta.FabricYarnMeta
	Loader meta.FabricLoaderMeta
	Api    meta.FabricApiMeta
	// contains filtered or unexported fields
}

type Forge

type Forge struct {
	Conf  config.ForgeDevelopConfig
	Meta  *ForgeMeta
	Cache string
}

func (*Forge) FetchApi added in v0.0.12

func (f *Forge) FetchApi() (err error)

func (*Forge) FetchCalls

func (f *Forge) FetchCalls() []develop.DevFetch

func (*Forge) LatestLoaderVersion added in v0.0.13

func (f *Forge) LatestLoaderVersion(mcVersion string) (string, error)

func (*Forge) LatestVersion

func (f *Forge) LatestVersion(prop develop.PropVersion, mcVersion string) (string, bool)

func (*Forge) Platform

func (f *Forge) Platform() develop.DevPlatform

func (*Forge) ReadVersionFile

func (f *Forge) ReadVersionFile(tree fs.FS, name string) (map[develop.PropVersion]string, error)

func (*Forge) ValidTree

func (f *Forge) ValidTree(tree fs.FS) bool

type ForgeMeta

type ForgeMeta struct {
	Api meta.ForgeApiMeta
	// contains filtered or unexported fields
}

type NeoForge

type NeoForge struct {
	Conf  config.NeoForgeDevelopConfig
	Meta  *NeoForgeMeta
	Cache string
}

func (*NeoForge) FetchApi added in v0.0.12

func (f *NeoForge) FetchApi() (err error)

func (*NeoForge) FetchCalls

func (f *NeoForge) FetchCalls() []develop.DevFetch

func (*NeoForge) LatestLoaderVersion added in v0.0.13

func (f *NeoForge) LatestLoaderVersion(mcVersion string) (string, error)

func (*NeoForge) LatestVersion

func (f *NeoForge) LatestVersion(prop develop.PropVersion, mcVersion string) (string, bool)

func (*NeoForge) Platform

func (f *NeoForge) Platform() develop.DevPlatform

func (*NeoForge) ReadVersionFile

func (f *NeoForge) ReadVersionFile(tree fs.FS, name string) (map[develop.PropVersion]string, error)

func (*NeoForge) ValidTree

func (f *NeoForge) ValidTree(tree fs.FS) bool

type NeoForgeMeta

type NeoForgeMeta struct {
	Api meta.NeoForgeApiMeta
	// contains filtered or unexported fields
}

type Quilt

type Quilt struct {
	Conf  config.QuiltDevelopConfig
	Meta  *QuiltMeta
	Cache string
}

func (*Quilt) FetchCalls

func (q *Quilt) FetchCalls() []develop.DevFetch

func (*Quilt) FetchGame added in v0.0.12

func (q *Quilt) FetchGame() (err error)

func (*Quilt) FetchLoader added in v0.0.12

func (q *Quilt) FetchLoader() (err error)

func (*Quilt) FetchQuiltMappings added in v0.0.12

func (q *Quilt) FetchQuiltMappings() (err error)

func (*Quilt) FetchQuiltMappingsOnLoom added in v0.0.12

func (q *Quilt) FetchQuiltMappingsOnLoom() (err error)

func (*Quilt) FetchQuiltStandardLibrary added in v0.0.12

func (q *Quilt) FetchQuiltStandardLibrary() (err error)

func (*Quilt) FetchQuiltedFabricApi added in v0.0.12

func (q *Quilt) FetchQuiltedFabricApi() (err error)

func (*Quilt) LatestLoaderVersion added in v0.0.13

func (q *Quilt) LatestLoaderVersion(_ string) (string, error)

func (*Quilt) LatestVersion

func (q *Quilt) LatestVersion(prop develop.PropVersion, mcVersion string) (string, bool)

func (*Quilt) Platform

func (q *Quilt) Platform() develop.DevPlatform

func (*Quilt) ReadVersionFile

func (q *Quilt) ReadVersionFile(tree fs.FS, name string) (map[develop.PropVersion]string, error)

func (*Quilt) ValidTree

func (q *Quilt) ValidTree(tree fs.FS) bool

type QuiltMeta

type QuiltMeta struct {
	Game                 meta.QuiltGameMeta
	QuiltMappings        meta.QuiltMappingsMeta
	QuiltMappingsOnLoom  meta.QuiltMappingsOnLoomMeta
	Loader               meta.QuiltLoaderMeta
	QuiltStandardLibrary meta.QuiltStandardLibraryMeta
	QuiltedFabricApi     meta.QuiltedFabricApiMeta
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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