Files
mc/server/item/emerald.go
T

27 lines
524 B
Go
Raw Normal View History

2026-07-09 08:33:57 +08:00
package item
import "github.com/sandertv/gophertunnel/minecraft/text"
// Emerald is a rare mineral obtained from emerald ore or from villagers.
type Emerald struct{}
// EncodeItem ...
func (Emerald) EncodeItem() (name string, meta int16) {
return "minecraft:emerald", 0
}
// TrimMaterial ...
func (Emerald) TrimMaterial() string {
return "emerald"
}
// MaterialColour ...
func (Emerald) MaterialColour() string {
return text.Emerald
}
// PayableForBeacon ...
func (Emerald) PayableForBeacon() bool {
return true
}