github.com/df-mc/dragonfly@v0.9.13/server/block/honeycomb.go (about) 1 package block 2 3 import ( 4 "github.com/df-mc/dragonfly/server/world/sound" 5 ) 6 7 // Honeycomb is a decorative blocks crafted from honeycombs. 8 type Honeycomb struct { 9 solid 10 } 11 12 // Instrument ... 13 func (h Honeycomb) Instrument() sound.Instrument { 14 return sound.Flute() 15 } 16 17 // BreakInfo ... 18 func (h Honeycomb) BreakInfo() BreakInfo { 19 return newBreakInfo(0.6, alwaysHarvestable, nothingEffective, oneOf(h)) 20 } 21 22 // EncodeItem ... 23 func (Honeycomb) EncodeItem() (name string, meta int16) { 24 return "minecraft:honeycomb_block", 0 25 } 26 27 // EncodeBlock ... 28 func (Honeycomb) EncodeBlock() (string, map[string]any) { 29 return "minecraft:honeycomb_block", nil 30 }