8 P1Nothing Param1Type = iota
12 //go:generate stringer -trimprefix P1 -type Param1Type
17 P2Nibble Param2Type = iota
32 //go:generate stringer -trimprefix P2 -type Param2Type
34 // A DrawType specifies how a node is drawn.
38 DrawCube DrawType = iota
58 //go:generate stringer -trimprefix Draw -type DrawType
63 NotWaving WaveType = iota
64 PlantWaving // Only top waves from side to side.
65 LeafWaving // Wave side to side.
66 LiquidWaving // Wave up and down.
69 //go:generate stringer -type WaveType
74 NotALiquid LiquidType = iota
79 //go:generate stringer -type LiquidType
81 // AlphaUse specifies how the alpha channel of a texture is used.
86 Mask // "Rounded" to either fully opaque or transparent.
91 //go:generate stringer -type AlphaUse
111 OverlayTiles [6]TileDef
113 SpecialTiles [6]TileDef
121 InsideTint color.NRGBA
122 Level uint8 // Must be < 128.
124 Translucent bool // Sunlight is scattered and becomes normal light.
125 Transparent bool // Sunlight isn't scattered.
138 LiquidType LiquidType
141 Viscosity uint8 // 0-7
147 DrawBox, ColBox, SelBox NodeBox
149 FootstepSnd, DiggingSnd, DugSnd SoundDef
162 LiquidMovePhysics bool
167 func BuiltinNodeDefs(n int) map[Content]NodeDef {
168 defs := make(map[Content]NodeDef, 3+n)
169 defs[Unknown] = NodeDef{
174 DrawType: DrawNothing,
182 defs[Ignore] = NodeDef{
184 DrawType: DrawNothing,