Files
mc/server/block/placer.go
T

14 lines
358 B
Go
Raw Normal View History

2026-07-09 08:33:57 +08:00
package block
import (
"github.com/df-mc/dragonfly/server/block/cube"
"github.com/df-mc/dragonfly/server/item"
"github.com/df-mc/dragonfly/server/world"
)
// Placer represents an entity that is able to place a block at a specific position in the world.
type Placer interface {
item.User
PlaceBlock(pos cube.Pos, b world.Block, ctx *item.UseContext)
}