forked from df-mc/dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nether_brick_fence.go
38 lines (31 loc) · 999 Bytes
/
nether_brick_fence.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package block
import (
"github.com/Adrian8115/dragonfly-Amethyst-Protocol/server/block/cube"
"github.com/Adrian8115/dragonfly-Amethyst-Protocol/server/block/model"
"github.com/Adrian8115/dragonfly-Amethyst-Protocol/server/world"
)
// NetherBrickFence is the nether brick variant of the fence block.
type NetherBrickFence struct {
transparent
sourceWaterDisplacer
}
// BreakInfo ...
func (n NetherBrickFence) BreakInfo() BreakInfo {
return newBreakInfo(2, pickaxeHarvestable, pickaxeEffective, oneOf(n)).withBlastResistance(30)
}
// SideClosed ...
func (NetherBrickFence) SideClosed(cube.Pos, cube.Pos, *world.World) bool {
return false
}
// Model ...
func (n NetherBrickFence) Model() world.BlockModel {
return model.Fence{}
}
// EncodeItem ...
func (NetherBrickFence) EncodeItem() (name string, meta int16) {
return "minecraft:nether_brick_fence", 0
}
// EncodeBlock ...
func (NetherBrickFence) EncodeBlock() (string, map[string]any) {
return "minecraft:nether_brick_fence", nil
}