Show / Hide Table of Contents

Class MyItemInfo

Accessible via GetItemInfo extension method on MyItemType

Inheritance
System.Object
MyItemInfo
Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Syntax
public sealed class MyItemInfo : ValueType

Fields

IsAmmo

Gets if item type is Ammo

Declaration
public bool IsAmmo
Field Value
Type Description
System.Boolean

IsComponent

Gets if item type is Component

Declaration
public bool IsComponent
Field Value
Type Description
System.Boolean

IsIngot

Gets if item type is Ingot

Declaration
public bool IsIngot
Field Value
Type Description
System.Boolean

IsOre

Gets if item type is Ore

Declaration
public bool IsOre
Field Value
Type Description
System.Boolean

IsTool

Gets if item type is Tool

Declaration
public bool IsTool
Field Value
Type Description
System.Boolean

Mass

Mass in Kg

Declaration
public float Mass
Field Value
Type Description
System.Single

MaxStackAmount

Max possible stacks of item in single inventory slot

Declaration
public MyFixedPoint MaxStackAmount
Field Value
Type Description
VRage.MyFixedPoint

Size

Size in meters

Declaration
public Vector3 Size
Field Value
Type Description
Vector3

UsesFractions

Ores and ingots are fractional. Ordinary items are not

Declaration
public bool UsesFractions
Field Value
Type Description
System.Boolean

Volume

Volume in m^3

Declaration
public float Volume
Field Value
Type Description
System.Single
☀
☾
In This Article
  • Fields
    • IsAmmo
    • IsComponent
    • IsIngot
    • IsOre
    • IsTool
    • Mass
    • MaxStackAmount
    • Size
    • UsesFractions
    • Volume
Back to top
Generated by DocFX
☀
☾