14 lines
358 B
Go
14 lines
358 B
Go
|
|
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)
|
||
|
|
}
|