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

Sandbox.ModAPI.Ingame.IMyUpgradableBlock

Malware edited this page Dec 21, 2018 · 57 revisions

Index

IMyUpgradableBlock Interface

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Implements:

Summary

interface to retrieve upgrade effects on block

Properties

Member Description
uint UpgradeCount number of upgrades applied
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
SerializableDefinitionId BlockDefinition Inherited from IMyCubeBlock
bool CheckConnectionAllowed Inherited from IMyCubeBlock
IMyCubeGrid CubeGrid Grid in which the block is placed

Inherited from IMyCubeBlock
string DefinitionDisplayNameText Definition name

Inherited from IMyCubeBlock
float DisassembleRatio Is set in definition Ratio at which is the block disassembled (grinding)

Inherited from IMyCubeBlock
string DisplayNameText Translated block name

Inherited from IMyCubeBlock
bool IsBeingHacked Hacking of the block is in progress

Inherited from IMyCubeBlock
bool IsFunctional True if integrity is above breaking threshold

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

Inherited from IMyCubeBlock
Vector3I Max Maximum coordinates of grid cells occupied by this block

Inherited from IMyCubeBlock
float Mass Block mass

Inherited from IMyCubeBlock
Vector3I Min Minimum coordinates of grid cells occupied by this block

Inherited from IMyCubeBlock
int NumberInGrid Order in which were the blocks of same type added to grid Used in default display name

Inherited from IMyCubeBlock
MyBlockOrientation Orientation Returns block orientation in base 6 directions

Inherited from IMyCubeBlock
long OwnerId Id of player owning block (not steam Id)

Inherited from IMyCubeBlock
Vector3I Position Position in grid coordinates

Inherited from IMyCubeBlock

Methods

Member Description
void&nbsp;GetUpgrades(ref&nbsp;Dictionary<string,&nbsp;float>&nbsp;upgrades) get list of upgrades (r/o); string - upgrade type, float - effect value as float (1 = 100%)
IMyInventory&nbsp;GetInventory() Simply get the MyInventoryBase component stored in this entity.

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

Inherited from IMyEntity
Vector3D&nbsp;GetPosition() Inherited from IMyEntity
string&nbsp;GetOwnerFactionTag() Tag of faction owning block

Inherited from IMyCubeBlock
MyRelationsBetweenPlayerAndBlock&nbsp;GetPlayerRelationToOwner() Inherited from IMyCubeBlock
MyRelationsBetweenPlayerAndBlock&nbsp;GetUserRelationToOwner(long&nbsp;playerId) Inherited from IMyCubeBlock
void&nbsp;UpdateIsWorking() Inherited from IMyCubeBlock
void&nbsp;UpdateVisual() Inherited from IMyCubeBlock

Clone this wiki locally