Table of Contents

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

position BlockPos
facing BlockFacing
rot int
name string
targets string
targetsforparent string[]

ConnectorMetaData(BlockPos, BlockFacing, int, string, string[], string[])

public ConnectorMetaData(BlockPos position, BlockFacing facing, int rot, string name, string[] targets, string[] targetsforparent)

Parameters

position BlockPos
facing BlockFacing
rot int
name string
targets string[]
targetsforparent string[]

Fields

Facing

public BlockFacing Facing

Field Value

BlockFacing

Name

public string Name

Field Value

string

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

BlockPos

Rotation

public int Rotation

Field Value

int

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

bool

Methods

Clone()

public ConnectorMetaData Clone()

Returns

ConnectorMetaData

ConnectsTo(ConnectorMetaData)

public bool ConnectsTo(ConnectorMetaData p)

Parameters

p ConnectorMetaData

Returns

bool

ConnectsTo(ConnectorMetaData, BlockPos)

public bool ConnectsTo(ConnectorMetaData p, BlockPos pos)

Parameters

p ConnectorMetaData
pos BlockPos

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

other ConnectorMetaData

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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

startPos BlockPos

Returns

ConnectorMetaData