dev

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: BSD-2-Clause Imports: 20 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", Branch: "arch-"}
View Source
var (
	PlatformFabric = develop.DevPlatform{Name: "Fabric", Branch: "fabric-"}
)
View Source
var (
	PlatformForge = develop.DevPlatform{Name: "Forge", Branch: "forge-"}
)
View Source
var (
	PlatformQuilt = develop.DevPlatform{Name: "Quilt", Branch: "quilt-"}
)

Functions

func ForFabric

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

func ForForge

func ForForge(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 ForArchitectury

func ForArchitectury(conf config.DevelopConfig, cache string) *Architectury

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 *object.Tree) (map[develop.PropVersion]string, error)

func (*Architectury) SubPlatformNames

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

func (*Architectury) ValidTree

func (f *Architectury) ValidTree(tree *object.Tree) bool

func (*Architectury) ValidTreeArch

func (f *Architectury) ValidTreeArch(_ *object.Tree) 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 *object.Tree) (map[develop.PropVersion]string, error)

func (Fabric) ValidTree

func (f Fabric) ValidTree(tree *object.Tree) bool

func (Fabric) ValidTreeArch

func (f Fabric) ValidTreeArch(tree *object.Tree) 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 *object.Tree) (map[develop.PropVersion]string, error)

func (Forge) ValidTree

func (f Forge) ValidTree(tree *object.Tree) bool

func (Forge) ValidTreeArch

func (f Forge) ValidTreeArch(tree *object.Tree) bool

type ForgeMeta

type ForgeMeta struct {
	Api meta.ForgeApiMeta
	// 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 *object.Tree) (map[develop.PropVersion]string, error)

func (Quilt) ValidTree

func (q Quilt) ValidTree(tree *object.Tree) bool

func (Quilt) ValidTreeArch

func (q Quilt) ValidTreeArch(tree *object.Tree) 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