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
blockAccessorIBlockAccessorworldIServerWorldAccessor
Fields
Attributes
public ITreeAttribute? Attributes
Field Value
AttributesDirty
public bool AttributesDirty
Field Value
BlockAccessor
public IBlockAccessor BlockAccessor
Field Value
BlockCodes
public Dictionary<int, AssetLocation>? BlockCodes
Field Value
CenterRockBlockId
public int CenterRockBlockId
Field Value
ChunkX
public int ChunkX
Field Value
ChunkZ
public int ChunkZ
Field Value
Chunks
public IServerChunk[] Chunks
Field Value
ClimateBotLeft
public int ClimateBotLeft
Field Value
ClimateBotRight
public int ClimateBotRight
Field Value
ClimateUpLeft
public int ClimateUpLeft
Field Value
ClimateUpRight
public int ClimateUpRight
Field Value
DisableSurfaceTerrainBlending
public bool DisableSurfaceTerrainBlending
Field Value
DisplaceWater
public bool DisplaceWater
Field Value
ItemCodes
public Dictionary<int, AssetLocation>? ItemCodes
Field Value
LayerBlockForBlockEntities
public Dictionary<BlockPos, Block>? LayerBlockForBlockEntities
Field Value
ReplaceBlockEntities
public bool ReplaceBlockEntities
Field Value
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
ReplaceMode
public EnumReplaceMode ReplaceMode
Field Value
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
StartPos
public BlockPos StartPos
Field Value
StoryStructureLocationCode
public string? StoryStructureLocationCode
Field Value
StructurePlacement
public EnumStructurePlacement? StructurePlacement
Field Value
SuppressSoilIfAirBelow
public bool SuppressSoilIfAirBelow
Field Value
World
public IServerWorldAccessor World
Field Value
Methods
Set(BlockPos, Dictionary<int, Dictionary<int, int>>?, int[])
public void Set(BlockPos startPos, Dictionary<int, Dictionary<int, int>>? resolvedRockTypeRemaps, int[] replacewithblocklayersBlockids)
Parameters
startPosBlockPosresolvedRockTypeRemapsDictionary<int, Dictionary<int, int>>replacewithblocklayersBlockidsint[]
Set(IServerChunk[], int, int, EnumReplaceMode, EnumStructurePlacement?, bool)
public void Set(IServerChunk[] chunks, int chunkX, int chunkZ, EnumReplaceMode replaceMode, EnumStructurePlacement? structurePlacements, bool replaceMetaBlocks)
Parameters
chunksIServerChunk[]chunkXintchunkZintreplaceModeEnumReplaceModestructurePlacementsEnumStructurePlacement?replaceMetaBlocksbool
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
chunksIServerChunk[]chunkXintchunkZintreplaceModeEnumReplaceModestructurePlacementsEnumStructurePlacement?replaceMetaBlocksboolresolvedRockTypeRemapsDictionary<int, Dictionary<int, int>>replacewithblocklayersBlockidsint[]rockBlockBlock