internal

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetIndex

func AssetIndex(version string) (index string)

func CorrectedArch

func CorrectedArch() string

func CorrectedOS

func CorrectedOS() string

func CreateLog

func CreateLog(path string) (*os.File, error)

func ShellCommand

func ShellCommand() (program string, input string, sep string)

Types

type ConfigFile

type ConfigFile struct {
	JRE              string   `json:"JRE"`
	Memory           Memory   `json:"Memory"`
	WorkingDirectory string   `json:"WorkingDirectory"`
	GameDirectory    string   `json:"GameDirectory"`
	PreJava          string   `json:"PreJava"`
	JavaAgents       []string `json:"JavaAgents"`
	EnvVars          []struct {
		Key   string `json:"Key"`
		Value string `json:"Value"`
	} `json:"EnvironmentVariables"`
	Width      int      `json:"Width"`
	Height     int      `json:"Height"`
	Fullscreen bool     `json:"Fullscreen"`
	JVMArgs    []string `json:"JVMArgs"`
}

func (*ConfigFile) LoadConfig

func (config *ConfigFile) LoadConfig(path string)

func (ConfigFile) SetEnv

func (config ConfigFile) SetEnv()

type Memory

type Memory struct {
	Xmx int `json:"Xmx"`
	Xms int `json:"Xms"`
	Xmn int `json:"Xmn"`
	Xss int `json:"Xss"`
}

type MinecraftArgs

type MinecraftArgs struct {
	BaseArgs           []string
	JVMArgs            []string
	Classpath          []string
	IchorClassPath     []string
	IchorExternalFiles []string
	JavaAgents         []string
	RAM                Memory
	Width              int
	Height             int
	MainClass          string
	Version            string
	AssetIndex         string
	GameDir            string
	TexturesDir        string
	UIDir              string
	WebOSRDir          string
	WorkingDir         string
	ClassPathDir       string
	Fullscreen         bool
}

func (MinecraftArgs) CompileArgs

func (args MinecraftArgs) CompileArgs(sep string) string

Jump to

Keyboard shortcuts

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