up3
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/block/cube"
|
||||
"github.com/df-mc/dragonfly/server/world"
|
||||
)
|
||||
|
||||
// Barrier is a transparent solid block used to create invisible boundaries.
|
||||
type Barrier struct {
|
||||
sourceWaterDisplacer
|
||||
transparent
|
||||
solid
|
||||
}
|
||||
|
||||
// SideClosed ...
|
||||
func (Barrier) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (Barrier) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:barrier", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (Barrier) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:barrier", nil
|
||||
}
|
||||
Reference in New Issue
Block a user