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

VRage.Game.ModAPI.Ingame.IMyCubeBlock

Morten Aune Lyrstad edited this page Apr 24, 2021 · 60 revisions

IndexNamespace Index

IMyCubeBlock Interface

public interface IMyCubeBlock: IMyEntity

Basic cube interface

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

Implements:

Inheritors:

Properties

Member Description
BlockDefinition { get; }
CheckConnectionAllowed { get; }
CubeGrid { get; } Grid in which the block is placed
DefinitionDisplayNameText { get; } Definition name
DisassembleRatio { get; } Is set in definition Ratio at which is the block disassembled (grinding)
DisplayNameText { get; } Translated block name
IsBeingHacked { get; } Hacking of the block is in progress
IsFunctional { get; } True if integrity is above breaking threshold
IsWorking { get; } True if block is able to do its work depening on block type (is functional, powered, enabled, etc...)
Max { get; } Maximum coordinates of grid cells occupied by this block
Mass { get; } Block mass
Min { get; } Minimum coordinates of grid cells occupied by this block
NumberInGrid { get; } Order in which were the blocks of same type added to grid Used in default display name
Orientation { get; } Returns block orientation in base 6 directions
OwnerId { get; } Id of player owning block (not steam Id)
Position { get; } Position in grid coordinates
Components { get; } Inherited from IMyEntity
EntityId { get; } Inherited from IMyEntity
Name { get; } Inherited from IMyEntity
DisplayName { get; } Inherited from IMyEntity
HasInventory { get; } 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
InventoryCount { get; } Returns the count of the number of inventories this entity has.

Inherited from IMyEntity
WorldAABB { get; } Inherited from IMyEntity
WorldAABBHr { get; } Inherited from IMyEntity
WorldMatrix { get; } Inherited from IMyEntity
WorldVolume { get; } Inherited from IMyEntity
WorldVolumeHr { get; } Inherited from IMyEntity

Methods

Member Description
GetOwnerFactionTag() Tag of faction owning block
GetPlayerRelationToOwner() Obsolete: GetPlayerRelationToOwner() is useless ingame. Mods should use the one in ModAPI.IMyCubeBlock
GetUserRelationToOwner(long)
UpdateIsWorking() Obsolete
UpdateVisual() Obsolete
GetInventory() Simply get the MyInventoryBase component stored in this entity.

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

Inherited from IMyEntity
GetPosition() Inherited from IMyEntity

Clone this wiki locally