github.com/df-mc/dragonfly@v0.9.13/server/item/golden_carrot.go (about) 1 package item 2 3 import "github.com/df-mc/dragonfly/server/world" 4 5 // GoldenCarrot is a valuable food item and brewing ingredient. It provides the second most saturation in the game, 6 // behind Suspicious Stew crafted with either a Dandelion or Blue Orchid. 7 type GoldenCarrot struct { 8 defaultFood 9 } 10 11 // Consume ... 12 func (GoldenCarrot) Consume(_ *world.World, c Consumer) Stack { 13 c.Saturate(6, 14.4) 14 return Stack{} 15 } 16 17 // EncodeItem ... 18 func (GoldenCarrot) EncodeItem() (name string, meta int16) { 19 return "minecraft:golden_carrot", 0 20 }