github.com/df-mc/dragonfly@v0.9.13/server/block/model/leaves.go (about) 1 package model 2 3 import ( 4 "github.com/df-mc/dragonfly/server/block/cube" 5 "github.com/df-mc/dragonfly/server/world" 6 ) 7 8 // Leaves is a model for leaves-like blocks. These blocks have a full collision box, but none of their faces 9 // are solid. 10 type Leaves struct{} 11 12 // BBox returns a physics.BBox that spans a full block. 13 func (Leaves) BBox(cube.Pos, *world.World) []cube.BBox { 14 return []cube.BBox{full} 15 } 16 17 // FaceSolid always returns false. 18 func (Leaves) FaceSolid(cube.Pos, cube.Face, *world.World) bool { 19 return false 20 }