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