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