github.com/df-mc/dragonfly@v0.9.13/server/block/model/chain.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  // Chain is a model used by chain blocks.
     9  type Chain struct {
    10  	// Axis is the axis which the chain faces.
    11  	Axis cube.Axis
    12  }
    13  
    14  // BBox ...
    15  func (c Chain) BBox(cube.Pos, *world.World) []cube.BBox {
    16  	return []cube.BBox{cube.Box(0.40625, 0.40625, 0.40625, 0.59375, 0.59375, 0.59375).Stretch(c.Axis, 0.40625)}
    17  }
    18  
    19  // FaceSolid ...
    20  func (Chain) FaceSolid(cube.Pos, cube.Face, *world.World) bool {
    21  	return false
    22  }