IMyEntity
From Space Engineers Wiki
Contents
Summary
Ingame (Programmable Block) interface for all entities.
Methods
GetInventory
Simply get the MyInventoryBase component stored in this entity.
IMyInventory GetInventory();
Search for inventory component with maching index.
IMyInventory GetInventory(int index);
GetPosition
Vector3D GetPosition();
Properties
Components
MyEntityComponentContainer Components { get; }
EntityId
long EntityId { get; }
Name
string Name { get; }
DisplayName
string DisplayName { get; }
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.
bool HasInventory { get; }
InventoryCount
Returns the count of the number of inventories this entity has.
int InventoryCount { get; }
WorldAABB
BoundingBoxD WorldAABB { get; }
WorldAABBHr
BoundingBoxD WorldAABBHr { get; }
WorldMatrix
MatrixD WorldMatrix { get; }
WorldVolume
BoundingSphereD WorldVolume { get; }
WorldVolumeHr
BoundingSphereD WorldVolumeHr { get; }