Class BlockInfo
Meta-data about a block, used mainly for saving and loading.
Assembly: Assembly-CSharp.dll
Syntax
Properties
Data
Declaration
public XDataHolder Data { get; }
Property Value
Type |
Description |
XDataHolder |
|
Guid
Unique identifier of the block.
Declaration
public Guid Guid { get; }
Property Value
InternalObject
Internal representation of this block's metadata.
WARNING: This is not part of the stable API and subject to change!
Declaration
public BlockInfo InternalObject { get; }
Property Value
Type |
Description |
BlockInfo |
|
Position
Position in world-space of the block.
Declaration
public Vector3 Position { get; set; }
Property Value
Type |
Description |
UnityEngine.Vector3 |
|
Rotation
Declaration
public Quaternion Rotation { get; set; }
Property Value
Type |
Description |
UnityEngine.Quaternion |
|
Scale
Declaration
public Vector3 Scale { get; set; }
Property Value
Type |
Description |
UnityEngine.Vector3 |
|
Type
Declaration
Property Value
Methods
Equals(Object)
Tests if the other object refers to the same block info as this one.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
From(BlockInfo)
Returns a BlockInfo instance from its internal representation.
Declaration
public static BlockInfo From(BlockInfo info)
Parameters
Type |
Name |
Description |
BlockInfo |
info |
|
Returns
From(Block)
Creates a BlockInfo instance based on an existing block.
Declaration
public static BlockInfo From(Block block)
Parameters
Type |
Name |
Description |
Block |
block |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Returns a string representation of this block info, containing its GUID.
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(BlockInfo, BlockInfo)
Declaration
public static bool operator ==(BlockInfo left, BlockInfo right)
Parameters
Returns
Inequality(BlockInfo, BlockInfo)
Declaration
public static bool operator !=(BlockInfo left, BlockInfo right)
Parameters
Returns