Search
Preparing search index...
The search index is not available
voxelservercore
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"src/lib/world/world"
World
Class World
Hierarchy
World
Implements
ICoreWorld
Index
Constructors
constructor
Properties
_server
_world
Men
active
auto
Save
Interval
chunk
Folder
chunk
Unload
Interval
chunks
entities
folder
generator
name
seed
version
Methods
exist
Chunk
get
Block
get
Block
Sync
get
Chunk
get
NeighborIDs
Chunks
get
Settings
is
Block
InBounds
is
Chunk
InBounds
read
Chunk
read
Chunk
Sync
save
All
save
Chunk
set
Block
set
Raw
Block
string
ToID
unload
unload
Chunk
Constructors
constructor
new
World
(
name
:
string
, seed
:
number
, generator
:
string
, ver
:
number
, server
:
Server
)
:
World
Parameters
name:
string
seed:
number
generator:
string
ver:
number
server:
Server
Returns
World
Properties
_server
_server
:
Server
_world
Men
_world
Men
:
WorldManager
active
active
:
boolean
= false
auto
Save
Interval
auto
Save
Interval
:
any
chunk
Folder
chunk
Folder
:
string
chunk
Unload
Interval
chunk
Unload
Interval
:
any
chunks
chunks
:
{}
Type declaration
[
index:
string
]:
Chunk
entities
entities
:
object
folder
folder
:
string
generator
generator
:
any
name
name
:
string
seed
seed
:
number
version
version
:
number
Methods
exist
Chunk
exist
Chunk
(
id
:
types.XZ
)
:
boolean
Parameters
id:
types.XZ
Returns
boolean
get
Block
get
Block
(
data
:
types.XYZ
, allowgen
:
boolean
)
:
Promise
<
Block
>
Parameters
data:
types.XYZ
allowgen:
boolean
Returns
Promise
<
Block
>
get
Block
Sync
get
Block
Sync
(
data
:
types.XYZ
, allowgen
?:
boolean
)
:
Block
Parameters
data:
types.XYZ
Default value
allowgen:
boolean
= false
Returns
Block
get
Chunk
get
Chunk
(
id
:
types.XZ
)
:
Promise
<
Chunk
>
Parameters
id:
types.XZ
Returns
Promise
<
Chunk
>
get
NeighborIDs
Chunks
get
NeighborIDs
Chunks
(
id
:
types.XZ
)
:
types.XZ
[]
Parameters
id:
types.XZ
Returns
types.XZ
[]
get
Settings
get
Settings
(
)
:
{
generator
:
any
;
name
:
string
;
seed
:
number
;
version
:
number
}
Returns
{
generator
:
any
;
name
:
string
;
seed
:
number
;
version
:
number
}
generator
:
any
name
:
string
seed
:
number
version
:
number
is
Block
InBounds
is
Block
InBounds
(
pos
:
types.XYZ
)
:
boolean
Parameters
pos:
types.XYZ
Returns
boolean
is
Chunk
InBounds
is
Chunk
InBounds
(
id
:
types.XZ
)
:
boolean
Parameters
id:
types.XZ
Returns
boolean
read
Chunk
read
Chunk
(
id
:
types.XZ
)
:
Promise
<
{
chunk
:
IView3duint16
;
metadata
:
any
}
>
Parameters
id:
types.XZ
Returns
Promise
<
{
chunk
:
IView3duint16
;
metadata
:
any
}
>
read
Chunk
Sync
read
Chunk
Sync
(
id
:
types.XZ
)
:
{
chunk
:
IView3duint16
;
metadata
:
any
}
Parameters
id:
types.XZ
Returns
{
chunk
:
IView3duint16
;
metadata
:
any
}
chunk
:
IView3duint16
metadata
:
any
save
All
save
All
(
)
:
void
Returns
void
save
Chunk
save
Chunk
(
id
:
types.XZ
)
:
Promise
<
void
>
Parameters
id:
types.XZ
Returns
Promise
<
void
>
set
Block
set
Block
(
data
:
types.XYZ
, block
:
string
|
number
|
Block
, allowgen
?:
boolean
)
:
Promise
<
void
>
Parameters
data:
types.XYZ
block:
string
|
number
|
Block
Default value
allowgen:
boolean
= false
Returns
Promise
<
void
>
set
Raw
Block
set
Raw
Block
(
data
:
types.XYZ
, block
:
number
)
:
Promise
<
void
>
Parameters
data:
types.XYZ
block:
number
Returns
Promise
<
void
>
string
ToID
string
ToID
(
id
:
string
)
:
types.XZ
Parameters
id:
string
Returns
types.XZ
unload
unload
(
)
:
void
Returns
void
unload
Chunk
unload
Chunk
(
id
:
types.XZ
)
:
void
Parameters
id:
types.XZ
Returns
void
Globals
"src/lib/world/world"
Chunk
World
constructor
_server
_world
Men
active
auto
Save
Interval
chunk
Folder
chunk
Unload
Interval
chunks
entities
folder
generator
name
seed
version
exist
Chunk
get
Block
get
Block
Sync
get
Chunk
get
NeighborIDs
Chunks
get
Settings
is
Block
InBounds
is
Chunk
InBounds
read
Chunk
read
Chunk
Sync
save
All
save
Chunk
set
Block
set
Raw
Block
string
ToID
unload
unload
Chunk
IWorld
Generator
IWorld
Generator
Constructor
inflate
Promise
ndarray
read
File
Promise
Generated using
TypeDoc