Table of Contents

Interface IWorldGenBlockAccessor

Namespace
Vintagestory.API.Server
Assembly
VintagestoryAPI.dll
public interface IWorldGenBlockAccessor : IBlockAccessor
Inherited Members
Extension Methods

Properties

WorldgenWorldAccessor

Returns a special IWorldAccessor which wraps the standard one with one difference: it returns this IWorldGenBlockAccessor as its BlockAccessor, in place of the general BlockAccessor for this world

IServerWorldAccessor WorldgenWorldAccessor { get; }

Property Value

IServerWorldAccessor

Methods

AddEntity(Entity)

Adds given initialized entity to the world. Requires you to set the Pos and ServerPos fields.

void AddEntity(Entity entity)

Parameters

entity Entity

BeginColumn()

void BeginColumn()

RunScheduledBlockLightUpdates()

This will run all scheduled block light updates at once. Should be called after all lighting has been completed.

void RunScheduledBlockLightUpdates()

ScheduleBlockLightUpdate(BlockPos, int, int)

Tells the server to relight this position once RunScheduledBlockLightUpdates() is called

void ScheduleBlockLightUpdate(BlockPos pos, int oldBlockid, int newBlockId)

Parameters

pos BlockPos
oldBlockid int

currently unused but might be used in the future to make sure old light is removed properly

newBlockId int

ScheduleBlockUpdate(BlockPos)

Tells the server to produce a block update at this given position once the chunk is fully generated and world ticking has begun

void ScheduleBlockUpdate(BlockPos pos)

Parameters

pos BlockPos