Class MyEntityInventoryOwnerExtensions
This class simplifies backward compatibility to IMyInventoryOwner in the code Instead checking Entity type, you need to check now if the Entity has Inventory
Inheritance
System.Object
    MyEntityInventoryOwnerExtensions
  Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
public static class MyEntityInventoryOwnerExtensions : ObjectMethods
InventoryOwnerType(MyEntity)
Declaration
public static MyInventoryOwnerTypeEnum InventoryOwnerType(this MyEntity entity)Parameters
| Type | Name | Description | 
|---|---|---|
| MyEntity | entity | 
Returns
| Type | Description | 
|---|---|
| MyInventoryOwnerTypeEnum |