Assembly: Sandbox.Game.dll

public class MyUsableItemDefinition: MyPhysicalItemDefinition

Fields

Member Description
UseSound
AlwaysInStore Inherited from MyPhysicalItemDefinition
AvailableInSurvival Inherited from MyDefinitionBase
CanPlayerOffer Inherited from MyPhysicalItemDefinition
CanPlayerOrder Inherited from MyPhysicalItemDefinition
CanSpawnFromScreen Inherited from MyPhysicalItemDefinition
Context Inherited from MyDefinitionBase
DepositAllEnabled Inherited from MyPhysicalItemDefinition
DescriptionArgs String used for shortcuts used in description

Inherited from MyDefinitionBase
DescriptionEnum Enum used for localization of description. Null for player created definitions.

Inherited from MyDefinitionBase
DescriptionString String used for user created description which do not have localization support.

Inherited from MyDefinitionBase
DestroyedPieceId Inherited from MyPhysicalItemDefinition
DestroyedPieces Inherited from MyPhysicalItemDefinition
DestroySound Inherited from MyPhysicalItemDefinition
Enabled Definition can be disabled by mod, then it will be removed from definition manager

Inherited from MyDefinitionBase
Health Inherited from MyPhysicalItemDefinition
Icons Icons for the definition, they are used from top to bottom.

Inherited from MyDefinitionBase
IconSymbol Inherited from MyPhysicalItemDefinition
Id Inherited from MyDefinitionBase
Mass Inherited from MyPhysicalItemDefinition
MaximumAcquisitionAmount Inherited from MyPhysicalItemDefinition
MaximumOfferAmount Inherited from MyPhysicalItemDefinition
MaximumOrderAmount Inherited from MyPhysicalItemDefinition
MaxStackAmount Inherited from MyPhysicalItemDefinition
MinimalPricePerUnit Inherited from MyPhysicalItemDefinition
MinimumAcquisitionAmount Inherited from MyPhysicalItemDefinition
MinimumOfferAmount Inherited from MyPhysicalItemDefinition
MinimumOrderAmount Inherited from MyPhysicalItemDefinition
Model Inherited from MyPhysicalItemDefinition
Models Inherited from MyPhysicalItemDefinition
ModelVolume Inherited from MyPhysicalItemDefinition
PhysicalMaterial Inherited from MyPhysicalItemDefinition
Public Indicates if definition should be offered in Cube builder

Inherited from MyDefinitionBase
RotateOnSpawnX Inherited from MyPhysicalItemDefinition
RotateOnSpawnY Inherited from MyPhysicalItemDefinition
RotateOnSpawnZ Inherited from MyPhysicalItemDefinition
Size Inherited from MyPhysicalItemDefinition
Volume Inherited from MyPhysicalItemDefinition
VoxelMaterial Inherited from MyPhysicalItemDefinition

Properties

Member Description
DescriptionText Use this property when showing description in GUI, as it takes into account more complex description construction.

Inherited from MyDefinitionBase
DisplayNameEnum Enum used for localization of display name. Null for player created definitions.

Inherited from MyDefinitionBase
DisplayNameString String name used for user created definitions which do not have localization support.

Inherited from MyDefinitionBase
DisplayNameText Use this property when showing name in GUI instead of DisplayName. This takes into account more complex name construction.

Inherited from MyDefinitionBase
DLCs Inherited from MyDefinitionBase
ExtraInventoryTooltipLine Inherited from MyPhysicalItemDefinition
HasIntegralAmounts Inherited from MyPhysicalItemDefinition
HasModelVariants Inherited from MyPhysicalItemDefinition
IsIngot Inherited from MyPhysicalItemDefinition
IsOre Inherited from MyPhysicalItemDefinition

Constructors

Member Description
MyUsableItemDefinition()
MyPhysicalItemDefinition() Inherited from MyPhysicalItemDefinition
MyDefinitionBase() Inherited from MyDefinitionBase

Methods

Member Description
CheckDefinitionDLCs(String[]) Checks if the definition has all required DLCs as it should have

Inherited from MyDefinitionBase
GetObjectBuilder() Inherited from MyDefinitionBase
Init(MyObjectBuilder_DefinitionBase, MyModContext) Inherited from MyDefinitionBase
Postprocess() Override this in case you want to do some postprocessing of the definition before the game starts. Prefer to use MyDefinitionPostprocessor instead.Postprocess is useful if you want to process the definition before the game begins,

but you only want to do it when all the definitions are loaded and merged.

Inherited from MyDefinitionBase
ToString() Inherited from MyDefinitionBase

Inheritance: MyDefinitionBase ˃ MyPhysicalItemDefinition

Inheritors: