data

package
v0.0.0-...-5709538 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteString

func WriteString(w *byteio.StickyLittleEndianWriter, s string)

Types

type Blocks

type Blocks struct {
	Base, Top minecraft.Block
	Level     int
}

type ColourBiome

type ColourBiome struct {
	Colour color.RGBA
	Biome  minecraft.Biome
	Name   string
}

type ColourBlocks

type ColourBlocks struct {
	Colour color.RGBA
	Blocks Blocks
	Name   string
}

type CustomMap

type CustomMap struct {
	DefaultMap
	GeneratorSettings struct {
		SeaLevel                uint8   `json:"seaLevel"`
		Caves                   bool    `json:"useCaves"`
		Strongholds             bool    `json:"useStrongholds"`
		Villages                bool    `json:"useVillages"`
		Mineshafts              bool    `json:"useMineShafts"`
		Temples                 bool    `json:"useTemples"`
		OceanMonuments          bool    `json:"useMonuments"` // Needs checking
		Ravines                 bool    `json:"useRavines"`
		Dungeons                bool    `json:"useDungeons"`
		DungeonChance           uint8   `json:"dungeonChance"`
		WaterLake               bool    `json:"useWaterLake"`
		WaterLakeChance         uint8   `json:"waterLakeChance"`
		LaveLake                bool    `json:"useLavaLake"`
		LavaLakeChance          uint8   `json:"lavaLakeChance"`
		LavaOceans              bool    `json:"useLavaOceans"`
		Biome                   int16   `json:"fixedBiome"`
		BiomeSize               uint8   `json:"biomeSize"`
		RiverSize               uint8   `json:"riverSize"`
		DirtSize                uint8   `json:"dirtSize"`
		DirtTries               uint8   `json:"dirtCount"`
		DirtMinHeight           uint8   `json:"dirtMinHeight"`
		DirtMaxHeight           uint8   `json:"dirtMaxHeight"`
		GravelSize              uint8   `json:"gravelSize"`
		GravelTries             uint8   `json:"gravelCount"`
		GravelMinHeight         uint8   `json:"gravelMinHeight"`
		GravelMaxHeight         uint8   `json:"gravelMaxHeight"`
		GraniteSize             uint8   `json:"graniteSize"`
		GraniteTries            uint8   `json:"graniteCount"`
		GraniteMinHeight        uint8   `json:"graniteMinHeight"`
		GraniteMaxHeight        uint8   `json:"graniteMaxHeight"`
		DiortiteSize            uint8   `json:"dioriteSize"`
		DiortiteTries           uint8   `json:"dioriteCount"`
		DiortiteMinHeight       uint8   `json:"dioriteMinHeight"`
		DiortiteMaxHeight       uint8   `json:"dioriteMaxHeight"`
		AndesiteSize            uint8   `json:"andesiteSize"`
		AndesiteTries           uint8   `json:"andesiteCount"`
		AndesiteMinHeight       uint8   `json:"andesiteMinHeight"`
		AndesiteMaxHeight       uint8   `json:"andesiteMaxHeight"`
		CoalSize                uint8   `json:"coalSize"`
		CoalTries               uint8   `json:"coalCount"`
		CoalMinHeight           uint8   `json:"coalMinHeight"`
		CoalMaxHeight           uint8   `json:"coalMaxHeight"`
		IronSize                uint8   `json:"ironSize"`
		IronTries               uint8   `json:"ironCount"`
		IronMinHeight           uint8   `json:"ironMinHeight"`
		IronMaxHeight           uint8   `json:"ironMaxHeight"`
		GoldSize                uint8   `json:"goldSize"`
		GoldTries               uint8   `json:"goldCount"`
		GoldMinHeight           uint8   `json:"goldMinHeight"`
		GoldMaxHeight           uint8   `json:"goldMaxHeight"`
		RedstoneSize            uint8   `json:"redstoneSize"`
		RedstoneTries           uint8   `json:"redstoneCount"`
		RedstoneMinHeight       uint8   `json:"redstoneMinHeight"`
		RedstoneMaxHeight       uint8   `json:"redstoneMaxHeight"`
		DiamondSize             uint8   `json:"diamondSize"`
		DiamondTries            uint8   `json:"diamondCount"`
		DiamondMinHeight        uint8   `json:"diamondMinHeight"`
		DiamondMaxHeight        uint8   `json:"diamondMaxHeight"`
		LapisSize               uint8   `json:"lapisSize"`
		LapisTries              uint8   `json:"lapisCount"`
		LapisCenterHeight       uint8   `json:"lapisCenterHeight"`
		LapisSpread             uint8   `json:"lapisSpread"`
		MainNoiseScaleX         float64 `json:"mainNoiseScaleX"`
		MainNoiseScaleY         float64 `json:"mainNoiseScaleY"`
		MainNoiseScaleZ         float64 `json:"mainNoiseScaleZ"`
		DepthNoiseScaleX        float64 `json:"depthNoiseScaleX"`
		DepthNoiseScaleZ        float64 `json:"depthNoiseScaleZ"`
		DepthNoiseScaleExponent float64 `json:"depthNoiseScaleExponent"`
		BaseSize                float64 `json:"baseSize"`
		CoordinateScale         float64 `json:"coordinateScale"`
		HeightScale             float64 `json:"heightScale"`
		HeightStretch           float64 `json:"stretchY"`
		UpperLimitScale         float64 `json:"upperLimitScale"`
		LowerLimitScale         float64 `json:"lowerLimitScale"`
		BiomeDepthWeight        float64 `json:"biomeDepthWeight"`
		BiomeScaleOffset        float64 `json:"biomeDepthOffset"`
		BiomeScaleWeight        float64 `json:"biomeScaleWeight"`
		BiomeDepthOffset        float64 `json:"biomeScaleOffset"`
	}
}

type DefaultMap

type DefaultMap struct {
	Mode               int
	Name               string
	GameMode           int32
	Seed               int64
	Structures, Cheats bool
}

type Generator

type Generator struct {
	ID   int
	Path string
	Name string
}

type GeneratorData

type GeneratorData struct {
	Terrain []ColourBlocks
	Biomes  []ColourBiome
	Plants  []ColourBlocks
	Options map[string]string
}

type Map

type Map struct {
	ID   int
	Path string

	sync.RWMutex `json:"-"`
	Name         string
	Server       int
}

type Server

type Server struct {
	ID   int
	Path string

	sync.RWMutex `json:"-"`
	Name         string
	Args         []string
	Map          int
	State        State
}

type ServerEULA

type ServerEULA struct {
	ID   int
	EULA string
}

type ServerProperties

type ServerProperties struct {
	ID         int
	Properties map[string]string
}

type ServerSettings

type ServerSettings struct {
	ServerName                         string
	ListenAddr                         string
	DirServers, DirMaps, DirGenerators string
	GeneratorExecutable                string
	GeneratorMaxMem                    uint64
}

type State

type State int
const (
	StateStopped State = iota
	StateStarting
	StateRunning
	StateStopping
	StateBusy
)

func (State) String

func (s State) String() string

type SuperFlatMap

type SuperFlatMap struct {
	DefaultMap
	GeneratorSettings string
}

type WriteCmd

type WriteCmd struct {
	ID  int
	Cmd string
}

Jump to

Keyboard shortcuts

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