Interface IMyItemProducerComponent
Describes an entity that produces items (mods interface).
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyItemProducerComponent : IMyItemProducerComponent
Properties
UseConveyorSystem
Indicates whether the conveyor system should be used when this entity's inventory is full.
Declaration
bool UseConveyorSystem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Produce(MyDefinitionId, MyFixedPoint)
Tries to produce an item of the given the definition and quantity.
Declaration
bool Produce(MyDefinitionId itemDefinitionId, MyFixedPoint quantity)
Parameters
Type | Name | Description |
---|---|---|
MyDefinitionId | itemDefinitionId | Definition of the item to be produced. |
VRage.MyFixedPoint | quantity | The quantity to produce. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the item was successfully produced and added to the inventory or sent to the conveyor system. |