github.com/df-mc/dragonfly@v0.9.13/server/block/bookshelf.go (about) 1 package block 2 3 import ( 4 "github.com/df-mc/dragonfly/server/item" 5 "time" 6 ) 7 8 // Bookshelf is a decorative block that primarily serves to enhance enchanting with an enchanting table. 9 type Bookshelf struct { 10 solid 11 bass 12 } 13 14 // BreakInfo ... 15 func (b Bookshelf) BreakInfo() BreakInfo { 16 return newBreakInfo(1.5, alwaysHarvestable, axeEffective, silkTouchDrop(item.NewStack(item.Book{}, 3), item.NewStack(b, 1))) 17 } 18 19 // FlammabilityInfo ... 20 func (Bookshelf) FlammabilityInfo() FlammabilityInfo { 21 return newFlammabilityInfo(30, 20, true) 22 } 23 24 // FuelInfo ... 25 func (Bookshelf) FuelInfo() item.FuelInfo { 26 return newFuelInfo(time.Second * 15) 27 } 28 29 // EncodeItem ... 30 func (Bookshelf) EncodeItem() (name string, meta int16) { 31 return "minecraft:bookshelf", 0 32 } 33 34 // EncodeBlock ... 35 func (Bookshelf) EncodeBlock() (string, map[string]any) { 36 return "minecraft:bookshelf", nil 37 }