IMyCubeBlock

From Space Engineers Wiki
Jump to: navigation, search

Summary

Basic cube interface

Inherits IMyEntity

Methods

GetOwnerFactionTag

Tag of faction owning block

string GetOwnerFactionTag();

GetUserRelationToOwner

MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId);

Properties

BlockDefinition

SerializableDefinitionId BlockDefinition { get; }

CheckConnectionAllowed

bool CheckConnectionAllowed { get; }

CubeGrid

Grid in which the block is placed

IMyCubeGrid CubeGrid { get; }

DefinitionDisplayNameText

Definition name

string DefinitionDisplayNameText { get; }

DisassembleRatio

Is set in definition
Ratio at which is the block disassembled (grinding)

float DisassembleRatio { get; }

DisplayNameText

Translated block name

string DisplayNameText { get; }

IsBeingHacked

Hacking of the block is in progress

bool IsBeingHacked { get; }

IsFunctional

True if integrity is above breaking threshold

bool IsFunctional { get; }

IsWorking

True if block is able to do its work depening on block type (is functional, powered, enabled, etc...)

bool IsWorking { get; }

Max

Maximum coordinates of grid cells occupied by this block

Vector3I Max { get; }

Mass

Block mass

float Mass { get; }

Min

Minimum coordinates of grid cells occupied by this block

Vector3I Min { get; }

NumberInGrid

Order in which were the blocks of same type added to grid Used in default display name

int NumberInGrid { get; }

Orientation

Returns block orientation in base 6 directions

MyBlockOrientation Orientation { get; }

OwnerId

Id of player owning block (not steam Id)

long OwnerId { get; }

Position

Position in grid coordinates

Vector3I Position { get; }

Derived Types

Inherited by Implemented by