VRage.Game.ModAPI.Ingame
IMyEntity
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:
- IMyAdvancedDoor
- IMyAirtightDoorBase
- IMyAirtightHangarDoor
- IMyAirtightSlideDoor
- IMyAirVent
- IMyArtificialMassBlock
- IMyAssembler
- IMyAttachableTopBlock
- IMyBasicMissionBlock
- IMyBatteryBlock
- IMyBeacon
- IMyBroadcastController
- IMyBroadcastControllerBlock
- IMyButtonPanel
- IMyCameraBlock
- IMyCargoContainer
- IMyCockpit
- IMyCollector
- IMyControlPanel
- IMyConveyor
- IMyConveyorSorter
- IMyConveyorTube
- IMyCryoChamber
- IMyCubeBlock
- IMyCubeGrid
- IMyDecoy
- IMyDefensiveCombatBlock
- IMyDoor
- IMyEmotionControllerBlock
- IMyEventControllerBlock
- IMyExtendedPistonBase
- IMyFlightMovementBlock
- IMyFunctionalBlock
- IMyGasGenerator
- IMyGasTank
- IMyGravityGenerator
- IMyGravityGeneratorBase
- IMyGravityGeneratorSphere
- IMyGyro
- IMyHeatVent
- IMyInteriorLight
- IMyJumpDrive
- IMyLandingGear
- IMyLargeConveyorTurretBase
- IMyLargeGatlingTurret
- IMyLargeInteriorTurret
- IMyLargeMissileTurret
- IMyLargeTurretBase
- IMyLaserAntenna
- IMyLightingBlock
- IMyMechanicalConnectionBlock
- IMyMedicalRoom
- IMyMotorAdvancedRotor
- IMyMotorAdvancedStator
- IMyMotorBase
- IMyMotorRotor
- IMyMotorStator
- IMyMotorSuspension
- IMyOffensiveCombatBlock
- IMyOreDetector
- IMyOxygenFarm
- IMyParachute
- IMyPassage
- IMyPathRecorderBlock
- IMyPistonBase
- IMyPistonTop
- IMyPowerProducer
- IMyProductionBlock
- IMyProgrammableBlock
- IMyProjector
- IMyRadioAntenna
- IMyReactor
- IMyRefinery
- IMyReflectorLight
- IMyRemoteControl
- IMySafeZoneBlock
- IMySearchlight
- IMySensorBlock
- IMyShipConnector
- IMyShipController
- IMyShipDrill
- IMyShipGrinder
- IMyShipMergeBlock
- IMyShipToolBase
- IMyShipWelder
- IMySmallGatlingGun
- IMySmallMissileLauncher
- IMySmallMissileLauncherReload
- IMySolarPanel
- IMySoundBlock
- IMySpaceBall
- IMyStoreBlock
- IMyTargetDummyBlock
- IMyTerminalBlock
- IMyTextPanel
- IMyThrust
- IMyTimerBlock
- IMyTransponder
- IMyTurretControlBlock
- IMyUpgradableBlock
- IMyUpgradeModule
- IMyUserControllableGun
- IMyVirtualMass
- IMyWarhead
- IMyWheel
- IMyWindTurbine