Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRage.Game.ModAPI.Ingame.IMyCubeBlock

Malware edited this page Dec 21, 2018 · 60 revisions

Index

IMyCubeBlock Interface

Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Implements:

Summary

Basic cube interface

Properties

Member Description
SerializableDefinitionId BlockDefinition
bool CheckConnectionAllowed
IMyCubeGrid CubeGrid Grid in which the block is placed
string DefinitionDisplayNameText Definition name
float DisassembleRatio Is set in definition Ratio at which is the block disassembled (grinding)
string DisplayNameText Translated block name
bool IsBeingHacked Hacking of the block is in progress
bool IsFunctional True if integrity is above breaking threshold
bool IsWorking True if block is able to do its work depening on block type (is functional, powered, enabled, etc...)
Vector3I Max Maximum coordinates of grid cells occupied by this block
float Mass Block mass
Vector3I Min Minimum coordinates of grid cells occupied by this block
int NumberInGrid Order in which were the blocks of same type added to grid Used in default display name
MyBlockOrientation Orientation Returns block orientation in base 6 directions
long OwnerId Id of player owning block (not steam Id)
Vector3I Position Position in grid coordinates
MyEntityComponentContainer Components Inherited from IMyEntity
long EntityId Inherited from IMyEntity
string Name Inherited from IMyEntity
string DisplayName Inherited from IMyEntity
bool HasInventory Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventory() != null.

Inherited from IMyEntity
int InventoryCount Returns the count of the number of inventories this entity has.

Inherited from IMyEntity
BoundingBoxD WorldAABB Inherited from IMyEntity
BoundingBoxD WorldAABBHr Inherited from IMyEntity
MatrixD WorldMatrix Inherited from IMyEntity
BoundingSphereD WorldVolume Inherited from IMyEntity
BoundingSphereD WorldVolumeHr Inherited from IMyEntity

Methods

Member Description
string GetOwnerFactionTag() Tag of faction owning block
MyRelationsBetweenPlayerAndBlock GetPlayerRelationToOwner()
MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId)
void UpdateIsWorking()
void UpdateVisual()
IMyInventory GetInventory() Simply get the MyInventoryBase component stored in this entity.

Inherited from IMyEntity
IMyInventory GetInventory(int index) Search for inventory component with maching index.

Inherited from IMyEntity
Vector3D GetPosition() Inherited from IMyEntity

Clone this wiki locally