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
BlocksRemoved
Amount of (survival) player removed blocks
int BlocksRemoved { get; }
Property Value
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
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
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
SetServerModdata(string, byte[])
Allows setting of server side only moddata of this chunk
void SetServerModdata(string key, byte[] data)