Table of Contents

Class SchematicPlacementData

Namespace
Vintagestory.Datastructures
Assembly
VintagestoryAPI.dll
public class SchematicPlacementData
Inheritance
SchematicPlacementData
Inherited Members
Extension Methods

Constructors

SchematicPlacementData(IBlockAccessor, IServerWorldAccessor)

public SchematicPlacementData(IBlockAccessor blockAccessor, IServerWorldAccessor world)

Parameters

blockAccessor IBlockAccessor
world IServerWorldAccessor

Fields

Attributes

public ITreeAttribute? Attributes

Field Value

ITreeAttribute

AttributesDirty

public bool AttributesDirty

Field Value

bool

BlockAccessor

public IBlockAccessor BlockAccessor

Field Value

IBlockAccessor

BlockCodes

public Dictionary<int, AssetLocation>? BlockCodes

Field Value

Dictionary<int, AssetLocation>

CenterRockBlockId

public int CenterRockBlockId

Field Value

int

ChunkX

public int ChunkX

Field Value

int

ChunkZ

public int ChunkZ

Field Value

int

Chunks

public IServerChunk[] Chunks

Field Value

IServerChunk[]

ClimateBotLeft

public int ClimateBotLeft

Field Value

int

ClimateBotRight

public int ClimateBotRight

Field Value

int

ClimateUpLeft

public int ClimateUpLeft

Field Value

int

ClimateUpRight

public int ClimateUpRight

Field Value

int

DisableSurfaceTerrainBlending

public bool DisableSurfaceTerrainBlending

Field Value

bool

DisplaceWater

public bool DisplaceWater

Field Value

bool

ItemCodes

public Dictionary<int, AssetLocation>? ItemCodes

Field Value

Dictionary<int, AssetLocation>

LayerBlockForBlockEntities

public Dictionary<BlockPos, Block>? LayerBlockForBlockEntities

Field Value

Dictionary<BlockPos, Block>

ReplaceBlockEntities

public bool ReplaceBlockEntities

Field Value

bool

ReplaceMeta

Turn it off to spawn structures as they are. For example, in this mode, instead of traders, their meta spawners will spawn

public bool ReplaceMeta

Field Value

bool

ReplaceMode

public EnumReplaceMode ReplaceMode

Field Value

EnumReplaceMode

ReplaceWithBlockLayersBlockids

public int[]? ReplaceWithBlockLayersBlockids

Field Value

int[]

ResolvedRockTypeRemaps

public Dictionary<int, Dictionary<int, int>>? ResolvedRockTypeRemaps

Field Value

Dictionary<int, Dictionary<int, int>>

RockBlock

public Block? RockBlock

Field Value

Block

StartPos

public BlockPos StartPos

Field Value

BlockPos

StoryStructureLocationCode

public string? StoryStructureLocationCode

Field Value

string

StructurePlacement

public EnumStructurePlacement? StructurePlacement

Field Value

EnumStructurePlacement?

SuppressSoilIfAirBelow

public bool SuppressSoilIfAirBelow

Field Value

bool

World

public IServerWorldAccessor World

Field Value

IServerWorldAccessor

Methods

Set(BlockPos, Dictionary<int, Dictionary<int, int>>?, int[])

public void Set(BlockPos startPos, Dictionary<int, Dictionary<int, int>>? resolvedRockTypeRemaps, int[] replacewithblocklayersBlockids)

Parameters

startPos BlockPos
resolvedRockTypeRemaps Dictionary<int, Dictionary<int, int>>
replacewithblocklayersBlockids int[]

Set(IServerChunk[], int, int, EnumReplaceMode, EnumStructurePlacement?, bool)

public void Set(IServerChunk[] chunks, int chunkX, int chunkZ, EnumReplaceMode replaceMode, EnumStructurePlacement? structurePlacements, bool replaceMetaBlocks)

Parameters

chunks IServerChunk[]
chunkX int
chunkZ int
replaceMode EnumReplaceMode
structurePlacements EnumStructurePlacement?
replaceMetaBlocks bool

Set(IServerChunk[], int, int, EnumReplaceMode, EnumStructurePlacement?, bool, Dictionary<int, Dictionary<int, int>>, int[], Block)

public void Set(IServerChunk[] chunks, int chunkX, int chunkZ, EnumReplaceMode replaceMode, EnumStructurePlacement? structurePlacements, bool replaceMetaBlocks, Dictionary<int, Dictionary<int, int>> resolvedRockTypeRemaps, int[] replacewithblocklayersBlockids, Block rockBlock)

Parameters

chunks IServerChunk[]
chunkX int
chunkZ int
replaceMode EnumReplaceMode
structurePlacements EnumStructurePlacement?
replaceMetaBlocks bool
resolvedRockTypeRemaps Dictionary<int, Dictionary<int, int>>
replacewithblocklayersBlockids int[]
rockBlock Block