github.com/df-mc/dragonfly@v0.9.13/server/item/carrot_on_a_stick.go (about) 1 package item 2 3 // CarrotOnAStick is an item that can be used to control saddled pigs. 4 type CarrotOnAStick struct{} 5 6 // MaxCount ... 7 func (CarrotOnAStick) MaxCount() int { 8 return 1 9 } 10 11 // EncodeItem ... 12 func (CarrotOnAStick) EncodeItem() (name string, meta int16) { 13 return "minecraft:carrot_on_a_stick", 0 14 }