Table of Contents

Interface IServerChunk

Namespace
Vintagestory.API.Server
Assembly
VintagestoryAPI.dll

Some extra methods available for server side chunks

public interface IServerChunk : IWorldChunk
Inherited Members
Extension Methods

Properties

BlocksPlaced

Amount of (survival) player placed blocks

int BlocksPlaced { get; }

Property Value

int

BlocksRemoved

Amount of (survival) player removed blocks

int BlocksRemoved { get; }

Property Value

int

GameVersionCreated

The game version where this chunk was created. Please note that this is not the version at which this chunk was complete. Chunks can linger around in a half complete state for a long time.

string GameVersionCreated { get; }

Property Value

string

NotAtEdge

If true, this chunk is not at the edge of the loaded or generating map: all eight neighbouring chunks are fully loaded

bool NotAtEdge { get; }

Property Value

bool

Methods

GetServerModdata(string)

Retrieve server side only mod data

byte[] GetServerModdata(string key)

Parameters

key string

Returns

byte[]

RemoveBlockEntity(BlockPos)

Remove a block entity

bool RemoveBlockEntity(BlockPos pos)

Parameters

pos BlockPos

Returns

bool

SetServerModdata(string, byte[])

Allows setting of server side only moddata of this chunk

void SetServerModdata(string key, byte[] data)

Parameters

key string
data byte[]