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