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