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
- Extension Methods
Properties
CurrentPos
EntityPos CurrentPos { get; set; }
Property Value
Dirty
bool Dirty { get; set; }
Property Value
TrackSelection
bool TrackSelection { get; set; }
Property Value
selectionTrackingOriginalPos
BlockPos selectionTrackingOriginalPos { get; set; }
Property Value
subDimensionId
int subDimensionId { get; set; }
Property Value
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
GetRenderTransformMatrix(float[], Vec3d)
float[] GetRenderTransformMatrix(float[] currentModelViewMatrix, Vec3d playerPos)
Parameters
Returns
- float[]
ReceiveClientChunk(long, IWorldChunk, IWorldAccessor)
void ReceiveClientChunk(long chunkIndex3d, IWorldChunk chunk, IWorldAccessor world)
Parameters
chunkIndex3d
longchunk
IWorldChunkworld
IWorldAccessor
SetRenderOffsetY(int)
void SetRenderOffsetY(int offsetY)
Parameters
offsetY
int
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()