Documentation ¶
Index ¶
Constants ¶
View Source
const ( NumChunkRows = 32 NumBlockRows = 16 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlayerData ¶
func GetPlayerData ¶
func GetPlayerData(dataPath string) ([]PlayerData, error)
GetPlayerData returns the all player data of the given datapath.
This function uses the ${dataPath}/world/playerdata/*.dat files and ${dataPath}/usercache.json file.
type RegionInfo ¶
RegionInfo covers all 32*32 chunks in a single region file.
type RegionPoint ¶
func GetRegionList ¶
func GetRegionList(dataPath string) ([]RegionPoint, error)
Get all region list in dataPath.
Valid region data file should be located in "world/region" directory and have filename like "r.x.z.mca".
Click to show internal directories.
Click to hide internal directories.