Class MultiblockStructure
- Namespace
 - Vintagestory.API.Common
 
- Assembly
 - VintagestoryAPI.dll
 
You can export one of these by making a selection with worldedit, looking at the center block (which should be your controller/master) then typing /we mgencode. Please note, air blocks are not exported Open in GitHub
public class MultiblockStructure
  - Inheritance
 - 
      
      MultiblockStructure
 
- Inherited Members
 
- Extension Methods
 
Fields
BlockNumbers
public Dictionary<AssetLocation, int> BlockNumbers
  Field Value
HighlightSlotId
public static int HighlightSlotId
  Field Value
Offsets
public List<BlockOffsetAndNumber> Offsets
  Field Value
OffsetsOrientation
public string OffsetsOrientation
  Field Value
Methods
ClearHighlights(IWorldAccessor, IPlayer)
public void ClearHighlights(IWorldAccessor world, IPlayer player)
  Parameters
worldIWorldAccessorplayerIPlayer
GetOrCreateBlockNumber(Block)
public int GetOrCreateBlockNumber(Block block)
  Parameters
blockBlock
Returns
HighlightIncompleteParts(IWorldAccessor, IPlayer, BlockPos)
public void HighlightIncompleteParts(IWorldAccessor world, IPlayer player, BlockPos centerPos)
  Parameters
worldIWorldAccessorplayerIPlayercenterPosBlockPos
InCompleteBlockCount(IWorldAccessor, BlockPos, PositionMismatchDelegate)
Check if the multiblock structure is complete. Ignores air blocks
public int InCompleteBlockCount(IWorldAccessor world, BlockPos centerPos, PositionMismatchDelegate onMismatch = null)
  Parameters
worldIWorldAccessorcenterPosBlockPosonMismatchPositionMismatchDelegate
Returns
InitForUse(float)
public void InitForUse(float rotateYDeg)
  Parameters
rotateYDegfloat
WalkMatchingBlocks(IWorldAccessor, BlockPos, Action<Block, BlockPos>)
public void WalkMatchingBlocks(IWorldAccessor world, BlockPos centerPos, Action<Block, BlockPos> onBlock)
  Parameters
worldIWorldAccessorcenterPosBlockPosonBlockAction<Block, BlockPos>