Struct ConnectorMetaData
- Namespace
- Vintagestory.Common.Collectible.Block
- Assembly
- VintagestoryAPI.dll
public struct ConnectorMetaData : IEquatable<ConnectorMetaData>
- Implements
- Inherited Members
- Extension Methods
Constructors
ConnectorMetaData(BlockPos, BlockFacing, int, string, string, string[])
public ConnectorMetaData(BlockPos position, BlockFacing facing, int rot, string name, string targets, string[] targetsforparent)
Parameters
ConnectorMetaData(BlockPos, BlockFacing, int, string, string[], string[])
public ConnectorMetaData(BlockPos position, BlockFacing facing, int rot, string name, string[] targets, string[] targetsforparent)
Parameters
Fields
Facing
public BlockFacing Facing
Field Value
Name
public string Name
Field Value
Position
This is an offset when loaded from schematic, but an absolute position if its part of the OpenSet during dungeon generation
public BlockPos Position
Field Value
Rotation
public int Rotation
Field Value
Targets
public string[] Targets
Field Value
- string[]
TargetsForParent
public string[] TargetsForParent
Field Value
- string[]
Properties
Valid
True if this a properly set up BlockPosFacing
public bool Valid { get; }
Property Value
Methods
Clone()
public ConnectorMetaData Clone()
Returns
ConnectsTo(ConnectorMetaData)
public bool ConnectsTo(ConnectorMetaData p)
Parameters
Returns
ConnectsTo(ConnectorMetaData, BlockPos)
public bool ConnectsTo(ConnectorMetaData p, BlockPos pos)
Parameters
pConnectorMetaDataposBlockPos
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Equals(ConnectorMetaData)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ConnectorMetaData other)
Parameters
otherConnectorMetaDataAn object to compare with this object.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Offset(BlockPos)
public ConnectorMetaData Offset(BlockPos startPos)
Parameters
startPosBlockPos