java

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EulaBlockCheck

func EulaBlockCheck(ip string, c chan<- error)

func GetBlockedServerList

func GetBlockedServerList() ([]string, error)

func HexColor

func HexColor(hex string) color.Color

func IsBlockedAddress

func IsBlockedAddress(address string, blockList []string) bool

func Ping

func Ping(opt common.Options, ip string, repeat int, delay time.Duration) error

func PrintForgeData

func PrintForgeData(buf *bytes.Buffer, forgeData ForgeData)

func ToColors

func ToColors(m chat.Message) string

Types

type ForgeData

type ForgeData struct {
	FmlNetworkVersion int
	Mods              []Mod
	Truncated         bool
	D                 string // Modern forge optimized binary data
}

func (ForgeData) GetMods

func (f ForgeData) GetMods() ([]Mod, bool)

type Mod

type Mod struct {
	ModMarker string
	ModId     string
}

type Status

type Status struct {
	Description chat.Message
	Players     struct {
		Online int
		Max    int
		Sample []struct {
			ID   uuid.UUID
			Name string
		}
	}
	Version struct {
		Protocol int
		Name     string
	}
	EnforcesSecureChat  bool
	PreviewsChat        bool
	ForgeData           ForgeData
	PreventsChatReports bool
}

Jump to

Keyboard shortcuts

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