Table of Contents

Interface IMiniDimension

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Provides read/write access to the blocks of a movable mini-dimension.

public interface IMiniDimension : IBlockAccessor
Inherited Members

Properties

CurrentPos

EntityPos CurrentPos { get; set; }

Property Value

EntityPos

Dirty

bool Dirty { get; set; }

Property Value

bool

TrackSelection

bool TrackSelection { get; }

Property Value

bool

selectionTrackingOriginalPos

BlockPos selectionTrackingOriginalPos { get; set; }

Property Value

BlockPos

subDimensionId

int subDimensionId { get; set; }

Property Value

int

Methods

AdjustPosForSubDimension(BlockPos)

void AdjustPosForSubDimension(BlockPos pos)

Parameters

pos BlockPos

ClearChunks()

Clears this mini-dimension (and empties any chunks but does not unload them) ready for re-use

void ClearChunks()

CollectChunksForSending(IPlayer[])

Sends dirty chunks to nearby clients

void CollectChunksForSending(IPlayer[] players)

Parameters

players IPlayer[]

GetRenderOffset(float)

Used when rendering

FastVec3d GetRenderOffset(float dt)

Parameters

dt float

Returns

FastVec3d

GetRenderTransformMatrix(float[], Vec3d)

float[] GetRenderTransformMatrix(float[] currentModelViewMatrix, Vec3d playerPos)

Parameters

currentModelViewMatrix float[]
playerPos Vec3d

Returns

float[]

ReceiveClientChunk(long, IWorldChunk, IWorldAccessor)

void ReceiveClientChunk(long chunkIndex3d, IWorldChunk chunk, IWorldAccessor world)

Parameters

chunkIndex3d long
chunk IWorldChunk
world IWorldAccessor

SetSelectionTrackingSubId_Server(int)

void SetSelectionTrackingSubId_Server(int dimensionId)

Parameters

dimensionId int

SetSubDimensionId(int)

void SetSubDimensionId(int dimensionId)

Parameters

dimensionId int

UnloadUnusedServerChunks()

Unload any chunks which are still empty after the dimension has been re-used

void UnloadUnusedServerChunks()