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

VRage.Game.ModAPI.Ingame.IMyEntity

Malware edited this page Dec 21, 2018 · 55 revisions

Index

IMyEntity Interface

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

Summary

Ingame (Programmable Block) interface for all entities.

Properties

[`MyEntityComponentContainer Components`](VRage.Game.ModAPI.Ingame.Components)
[`long EntityId`](VRage.Game.ModAPI.Ingame.EntityId)
[`string Name`](VRage.Game.ModAPI.Ingame.Name)
[`string DisplayName`](VRage.Game.ModAPI.Ingame.DisplayName)
[`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.
[`int InventoryCount`](VRage.Game.ModAPI.Ingame.InventoryCount) Returns the count of the number of inventories this entity has.
[`BoundingBoxD WorldAABB`](VRage.Game.ModAPI.Ingame.WorldAABB)
[`BoundingBoxD WorldAABBHr`](VRage.Game.ModAPI.Ingame.WorldAABBHr)
[`MatrixD WorldMatrix`](VRage.Game.ModAPI.Ingame.WorldMatrix)
[`BoundingSphereD WorldVolume`](VRage.Game.ModAPI.Ingame.WorldVolume)
[`BoundingSphereD WorldVolumeHr`](VRage.Game.ModAPI.Ingame.WorldVolumeHr)
### Methods
[`IMyInventory GetInventory()`](VRage.Game.ModAPI.Ingame.GetInventory) Simply get the MyInventoryBase component stored in this entity.
[`IMyInventory GetInventory(int index)`](VRage.Game.ModAPI.Ingame.GetInventory) Search for inventory component with maching index.
[`Vector3D GetPosition()`](VRage.Game.ModAPI.Ingame.GetPosition)

Clone this wiki locally