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

[`uint UpgradeCount`](Sandbox.ModAPI.Ingame.UpgradeCount) number of upgrades applied
[`MyEntityComponentContainer Components`](VRage.Game.ModAPI.Ingame.Components) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`long EntityId`](VRage.Game.ModAPI.Ingame.EntityId) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`string Name`](VRage.Game.ModAPI.Ingame.Name) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`string DisplayName`](VRage.Game.ModAPI.Ingame.DisplayName) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`bool HasInventory`](VRage.Game.ModAPI.Ingame.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`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`int InventoryCount`](VRage.Game.ModAPI.Ingame.InventoryCount) Returns the count of the number of inventories this entity has.

_Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`BoundingBoxD WorldAABB`](VRage.Game.ModAPI.Ingame.WorldAABB) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`BoundingBoxD WorldAABBHr`](VRage.Game.ModAPI.Ingame.WorldAABBHr) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`MatrixD WorldMatrix`](VRage.Game.ModAPI.Ingame.WorldMatrix) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`BoundingSphereD WorldVolume`](VRage.Game.ModAPI.Ingame.WorldVolume) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`BoundingSphereD WorldVolumeHr`](VRage.Game.ModAPI.Ingame.WorldVolumeHr) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`SerializableDefinitionId BlockDefinition`](VRage.Game.ModAPI.Ingame.BlockDefinition) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`bool CheckConnectionAllowed`](VRage.Game.ModAPI.Ingame.CheckConnectionAllowed) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`IMyCubeGrid CubeGrid`](VRage.Game.ModAPI.Ingame.CubeGrid) Grid in which the block is placed

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`string DefinitionDisplayNameText`](VRage.Game.ModAPI.Ingame.DefinitionDisplayNameText) Definition name

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`float DisassembleRatio`](VRage.Game.ModAPI.Ingame.DisassembleRatio) Is set in definition Ratio at which is the block disassembled (grinding)

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`string DisplayNameText`](VRage.Game.ModAPI.Ingame.DisplayNameText) Translated block name

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`bool IsBeingHacked`](VRage.Game.ModAPI.Ingame.IsBeingHacked) Hacking of the block is in progress

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`bool IsFunctional`](VRage.Game.ModAPI.Ingame.IsFunctional) True if integrity is above breaking threshold

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`bool IsWorking`](VRage.Game.ModAPI.Ingame.IsWorking) True if block is able to do its work depening on block type (is functional, powered, enabled, etc...)

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`Vector3I Max`](VRage.Game.ModAPI.Ingame.Max) Maximum coordinates of grid cells occupied by this block

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`float Mass`](VRage.Game.ModAPI.Ingame.Mass) Block mass

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`Vector3I Min`](VRage.Game.ModAPI.Ingame.Min) Minimum coordinates of grid cells occupied by this block

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`int NumberInGrid`](VRage.Game.ModAPI.Ingame.NumberInGrid) Order in which were the blocks of same type added to grid Used in default display name

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`MyBlockOrientation Orientation`](VRage.Game.ModAPI.Ingame.Orientation) Returns block orientation in base 6 directions

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`long OwnerId`](VRage.Game.ModAPI.Ingame.OwnerId) Id of player owning block (not steam Id)

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`Vector3I Position`](VRage.Game.ModAPI.Ingame.Position) Position in grid coordinates

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
### Methods
[`void GetUpgrades(ref Dictionary upgrades)`](Sandbox.ModAPI.Ingame.GetUpgrades) get list of upgrades (r/o); string - upgrade type, float - effect value as float (1 = 100%)
[`IMyInventory GetInventory()`](VRage.Game.ModAPI.Ingame.GetInventory) Simply get the MyInventoryBase component stored in this entity.

_Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`IMyInventory GetInventory(int index)`](VRage.Game.ModAPI.Ingame.GetInventory) Search for inventory component with maching index.

_Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`Vector3D GetPosition()`](VRage.Game.ModAPI.Ingame.GetPosition) _Inherited from [`IMyEntity`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`string GetOwnerFactionTag()`](VRage.Game.ModAPI.Ingame.GetOwnerFactionTag) Tag of faction owning block

_Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`MyRelationsBetweenPlayerAndBlock GetPlayerRelationToOwner()`](VRage.Game.ModAPI.Ingame.GetPlayerRelationToOwner) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner(long playerId)`](VRage.Game.ModAPI.Ingame.GetUserRelationToOwner) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`void UpdateIsWorking()`](VRage.Game.ModAPI.Ingame.UpdateIsWorking) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_
[`void UpdateVisual()`](VRage.Game.ModAPI.Ingame.UpdateVisual) _Inherited from [`IMyCubeBlock`](Sandbox.ModAPI.Ingame.IMyUpgradableBlock)_

Clone this wiki locally