Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BiomesCache = make(map[string][]Biome)
View Source
var BlocksCache = make(map[string][]Block)
View Source
var MinecraftData embed.FS
View Source
var Paths struct { Data map[string]map[string]string `json:"pc"` }
View Source
var ProtocolVersions []VersionInfo
View Source
var UnknownMinecraftVersionError = errors.New("unknown minecraft version")
Functions ¶
func LoadVersionedJson ¶
Types ¶
type Biome ¶
type Biome struct {
Id int
Name string
Category string
Temperature float64
HasPrecipitation bool
Dimension string
DisplayName string
Color int
}
func BiomesForVersion ¶
type Block ¶
type Block struct {
Id int
Name string
DisplayName string
Hardness float64
Resistance float64
StackSize int
Diggable bool
Material string
Transparent bool
EmitLight int
FilterLight int
DefaultState int32
MinStateId int32
MaxStateId int32
States []struct {
Name string
Type string
NumValues int
}
Drops []int
BoundingBox string
}
func BlocksForVersion ¶
type VersionInfo ¶
type VersionInfo struct {
MinecraftVersion string
Version int32
DataVersion int
UsesNetty bool
MajorVersion string
ReleaseType string
}
func LookUpVersionByName ¶
func LookUpVersionByName(name string) (ret VersionInfo, err error)
func LookUpVersionByProtocolVersion ¶
func LookUpVersionByProtocolVersion(version int32) (ret VersionInfo, err error)
Click to show internal directories.
Click to hide internal directories.