github.com/df-mc/dragonfly@v0.9.13/server/item/coal.go (about) 1 package item 2 3 import "time" 4 5 // Coal is an item used as fuel & crafting torches. 6 type Coal struct{} 7 8 // FuelInfo ... 9 func (Coal) FuelInfo() FuelInfo { 10 return newFuelInfo(time.Second * 80) 11 } 12 13 // EncodeItem ... 14 func (Coal) EncodeItem() (name string, meta int16) { 15 return "minecraft:coal", 0 16 }