8 P1Nothing Param1Type = iota
12 //go:generate stringer -trimprefix P1 -type Param1Type
17 P2Nibble Param2Type = iota
31 //go:generate stringer -trimprefix P2 -type Param2Type
33 // A DrawType specifies how a node is drawn.
37 DrawCube DrawType = iota
57 //go:generate stringer -trimprefix Draw -type DrawType
62 NotWaving WaveType = iota
63 PlantWaving // Only top waves from side to side.
64 LeafWaving // Wave side to side.
65 LiquidWaving // Wave up and down.
68 //go:generate stringer -type WaveType
73 NotALiquid LiquidType = iota
78 //go:generate stringer -type LiquidType
80 // AlphaUse specifies how the alpha channel of a texture is used.
85 Mask // "Rounded" to either fully opaque or transparent.
90 //go:generate stringer -type AlphaUse
110 OverlayTiles [6]TileDef
112 SpecialTiles [6]TileDef
120 InsideTint color.NRGBA
121 Level uint8 // Must be < 128.
123 Translucent bool // Sunlight is scattered and becomes normal light.
124 Transparent bool // Sunlight isn't scattered.
137 LiquidType LiquidType
140 Viscosity uint8 // 0-7
146 DrawBox, ColBox, SelBox NodeBox
148 FootstepSnd, DiggingSnd, DugSnd SoundDef
162 func BuiltinNodeDefs(n int) map[Content]NodeDef {
163 defs := make(map[Content]NodeDef, 3+n)
164 defs[Unknown] = NodeDef{
169 DrawType: DrawNothing,
177 defs[Ignore] = NodeDef{
179 DrawType: DrawNothing,