Documentation ¶
Index ¶
- type World
- func (world *World) Close() error
- func (world *World) Delete(key []byte) error
- func (world *World) FilePath() string
- func (world *World) Get(key []byte) ([]byte, error)
- func (world *World) GetKeys() ([][]byte, error)
- func (world *World) GetLevelDat() ([]byte, error)
- func (world *World) GetLevelDatNbtAndVersion() ([]byte, int32, error)
- func (world *World) Put(key []byte, value []byte) error
- func (world *World) PutLevelDat(levelDatData []byte) error
- func (world *World) PutLevelDatNbtAndVersion(levelDatData []byte, version int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type World ¶
type World struct {
// contains filtered or unexported fields
}
World holds the LevelDB instance, wraps its functions and provides functions for any other World needs
func (*World) GetLevelDat ¶ added in v0.3.0
GetLevelDat gets a the contents of level.dat
func (*World) GetLevelDatNbtAndVersion ¶ added in v0.3.0
GetLevelDatNbtAndVersion returns the version and nbt portions of level.dat
func (*World) Put ¶
Put puts a key/value pair into the world database, superceding/replacing/deleting the existing value for that key, if any
func (*World) PutLevelDat ¶ added in v0.3.0
PutLevelDat replaces the contents of level.dat
Click to show internal directories.
Click to hide internal directories.