minewebgen - internal/data/generator.go
1 package data // import "vimagination.zapto.org/minewebgen/internal/data"
2
3 import (
4 "image/color"
5
6 "vimagination.zapto.org/minecraft"
7 )
8
9 type Blocks struct {
10 Base, Top minecraft.Block
11 Level int
12 }
13
14 type ColourBlocks struct {
15 Colour color.RGBA
16 Blocks Blocks
17 Name string
18 }
19
20 type ColourBiome struct {
21 Colour color.RGBA
22 Biome minecraft.Biome
23 Name string
24 }
25
26 type GeneratorData struct {
27 Terrain []ColourBlocks
28 Biomes []ColourBiome
29 Plants []ColourBlocks
30 Options map[string]string
31 }