github.com/df-mc/dragonfly@v0.9.13/server/block/model/anvil.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  // Anvil is a model used by anvils.
     9  type Anvil struct {
    10  	// Facing is the direction that the anvil is facing.
    11  	Facing cube.Direction
    12  }
    13  
    14  // BBox ...
    15  func (a Anvil) BBox(cube.Pos, *world.World) []cube.BBox {
    16  	return []cube.BBox{full.Stretch(a.Facing.RotateLeft().Face().Axis(), -0.125)}
    17  }
    18  
    19  // FaceSolid ...
    20  func (Anvil) FaceSolid(cube.Pos, cube.Face, *world.World) bool {
    21  	return false
    22  }