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