Assembly: VRage.Game.dll

public interface IMyEntity

Interface for all entities. (PB scripting interface)

Properties

Member Description
Closed True if the block has been removed from the world.
Components Gets blocks component logic container
DisplayName Gets user friendly name of entity. May be null For block terminal name use DisplayNameText
EntityId Id of entity
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.
InventoryCount Returns the count of the number of inventories this entity has.
Name Some entities can have uniq name, and game can find them by name IMyEntities.TryGetEntityByNameprohibited
WorldAABB Gets world axis-aligned bounding box
WorldAABBHr Gets world axis-aligned bounding box
WorldMatrix Gets world matrix of this entity
WorldVolume Gets bounding sphere of this entity
WorldVolumeHr Gets bounding sphere of this entity

Methods

Member Description
GetInventory() Simply get the MyInventoryBase component stored in this entity.
GetInventory(int) Search for inventory component with maching index.
GetPosition() Gets position in world coordinates

Inheritors: