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,33 @@
|
||||
package block
|
||||
|
||||
import (
|
||||
"github.com/df-mc/dragonfly/server/block/cube"
|
||||
"github.com/df-mc/dragonfly/server/world"
|
||||
)
|
||||
|
||||
// IronBars are blocks that serve a similar purpose to glass panes, but made of iron instead of glass.
|
||||
type IronBars struct {
|
||||
transparent
|
||||
thin
|
||||
sourceWaterDisplacer
|
||||
}
|
||||
|
||||
// BreakInfo ...
|
||||
func (i IronBars) BreakInfo() BreakInfo {
|
||||
return newBreakInfo(5, pickaxeHarvestable, pickaxeEffective, oneOf(i)).withBlastResistance(30)
|
||||
}
|
||||
|
||||
// SideClosed ...
|
||||
func (i IronBars) SideClosed(cube.Pos, cube.Pos, *world.Tx) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// EncodeItem ...
|
||||
func (IronBars) EncodeItem() (name string, meta int16) {
|
||||
return "minecraft:iron_bars", 0
|
||||
}
|
||||
|
||||
// EncodeBlock ...
|
||||
func (IronBars) EncodeBlock() (string, map[string]any) {
|
||||
return "minecraft:iron_bars", nil
|
||||
}
|
||||
Reference in New Issue
Block a user