Files
mc/server/block/model/empty.go
T

20 lines
456 B
Go
Raw Normal View History

2026-07-09 08:33:57 +08:00
package model
import (
"github.com/df-mc/dragonfly/server/block/cube"
"github.com/df-mc/dragonfly/server/world"
)
// Empty is a model that is completely empty. It has no collision boxes or solid faces.
type Empty struct{}
// BBox returns an empty slice.
func (Empty) BBox(cube.Pos, world.BlockSource) []cube.BBox {
return nil
}
// FaceSolid always returns false.
func (Empty) FaceSolid(cube.Pos, cube.Face, world.BlockSource) bool {
return false
}