Documentation ¶
Overview ¶
Responsible for reading the overall world persistent state. Eventually this should also be responsible for writing it as well.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWorld ¶
Creates a new world at 'worldPath'
Types ¶
type WorldStore ¶
type WorldStore struct { WorldPath string Seed int64 Time Ticks LevelData nbt.ITag ChunkStore chunkstore.IChunkStore SpawnPosition BlockXyz }
func LoadWorldStore ¶
func LoadWorldStore(worldPath string) (world *WorldStore, err error)
func (*WorldStore) ChunkStoreForDimension ¶
func (world *WorldStore) ChunkStoreForDimension(dimension DimensionId) (store chunkstore.IChunkStore, err error)
NOTE: ChunkStoreForDimension shouldn't really be used in the server just yet.
func (*WorldStore) PlayerData ¶
func (world *WorldStore) PlayerData(user string) (playerData nbt.Compound, err error)
func (*WorldStore) WritePlayerData ¶
func (world *WorldStore) WritePlayerData(user string, data nbt.Compound) (err error)
Click to show internal directories.
Click to hide internal directories.