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

_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
_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