dev

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: BSD-2-Clause Imports: 19 Imported by: 0

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 added in v0.0.6

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) 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) (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 meta.ArchitecturyApiMeta
	// contains filtered or unexported fields
}

type Fabric

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

func (*Fabric) FetchCalls

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

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) (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) FetchCalls

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

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) (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 added in v0.0.6

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

func (*NeoForge) FetchCalls added in v0.0.6

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

func (*NeoForge) LatestVersion added in v0.0.6

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

func (*NeoForge) Platform added in v0.0.6

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

func (*NeoForge) ReadVersionFile added in v0.0.6

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

func (*NeoForge) ValidTree added in v0.0.6

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

type NeoForgeMeta added in v0.0.6

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) 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) (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