github.com/df-mc/dragonfly@v0.9.13/server/block/glass_pane.go (about) 1 package block 2 3 import ( 4 "github.com/df-mc/dragonfly/server/block/cube" 5 "github.com/df-mc/dragonfly/server/world" 6 ) 7 8 // GlassPane is a transparent block that can be used as a more efficient alternative to glass blocks. 9 type GlassPane struct { 10 transparent 11 thin 12 clicksAndSticks 13 sourceWaterDisplacer 14 } 15 16 // SideClosed ... 17 func (p GlassPane) SideClosed(cube.Pos, cube.Pos, *world.World) bool { 18 return false 19 } 20 21 // BreakInfo ... 22 func (p GlassPane) BreakInfo() BreakInfo { 23 return newBreakInfo(0.3, alwaysHarvestable, nothingEffective, silkTouchOnlyDrop(p)) 24 } 25 26 // EncodeItem ... 27 func (GlassPane) EncodeItem() (name string, meta int16) { 28 return "minecraft:glass_pane", meta 29 } 30 31 // EncodeBlock ... 32 func (GlassPane) EncodeBlock() (string, map[string]any) { 33 return "minecraft:glass_pane", nil 34 }