Files
mc/server/item/coal.go
T

17 lines
293 B
Go
Raw Permalink Normal View History

2026-07-09 08:33:57 +08:00
package item
import "time"
// Coal is an item used as fuel & crafting torches.
type Coal struct{}
// FuelInfo ...
func (Coal) FuelInfo() FuelInfo {
return newFuelInfo(time.Second * 80)
}
// EncodeItem ...
func (Coal) EncodeItem() (name string, meta int16) {
return "minecraft:coal", 0
}