Difference between revisions of "IMyCubeBlock"

From Space Engineers Wiki
Jump to: navigation, search
(Created page with "==Summary== Basic cube interface Inherits Inherits::IMyEntity ==Methods== ===GetOwnerFactionTag=== Tag of faction owning block string GetOwnerFactionTag(); ===GetUserR...")
 
m (Added derived types)
 
Line 76: Line 76:
 
Position in grid coordinates
 
Position in grid coordinates
 
  [[Vector3I]] Position { get; }
 
  [[Vector3I]] Position { get; }
 +
 +
{{Derived Types}}
  
 
[[Category:Programming]][[Category:Interface]]
 
[[Category:Programming]][[Category:Interface]]

Latest revision as of 23:19, 18 October 2020

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