github.com/df-mc/dragonfly@v0.9.13/server/item/charcoal.go (about) 1 package item 2 3 import "time" 4 5 // Charcoal is an item obtained by smelting logs or wood. 6 type Charcoal struct{} 7 8 // FuelInfo ... 9 func (Charcoal) FuelInfo() FuelInfo { 10 return newFuelInfo(time.Second * 80) 11 } 12 13 // EncodeItem ... 14 func (Charcoal) EncodeItem() (name string, meta int16) { 15 return "minecraft:charcoal", 0 16 }