IMyEntity

From Space Engineers Wiki
Revision as of 21:41, 18 October 2020 by Vox Serico (talk | contribs) (Interface)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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; }