github.com/df-mc/dragonfly@v0.9.13/server/item/beetroot_soup.go (about) 1 package item 2 3 import ( 4 "github.com/df-mc/dragonfly/server/world" 5 ) 6 7 // BeetrootSoup is an unstackable food item. 8 type BeetrootSoup struct { 9 defaultFood 10 } 11 12 // MaxCount ... 13 func (BeetrootSoup) MaxCount() int { 14 return 1 15 } 16 17 // Consume ... 18 func (BeetrootSoup) Consume(_ *world.World, c Consumer) Stack { 19 c.Saturate(6, 7.2) 20 return NewStack(Bowl{}, 1) 21 } 22 23 // EncodeItem ... 24 func (BeetrootSoup) EncodeItem() (name string, meta int16) { 25 return "minecraft:beetroot_soup", 0 26 }