github.com/df-mc/dragonfly@v0.9.13/server/block/model/cactus.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 // Cactus is the model for a Cactus. It is just barely not a full block, having a slightly reduced width and depth. 9 type Cactus struct{} 10 11 // BBox returns a physics.BBox that is slightly smaller than a full block. 12 func (Cactus) BBox(cube.Pos, *world.World) []cube.BBox { 13 return []cube.BBox{cube.Box(0.025, 0, 0.025, 0.975, 1, 0.975)} 14 } 15 16 // FaceSolid always returns false. 17 func (Cactus) FaceSolid(cube.Pos, cube.Face, *world.World) bool { 18 return false 19 }