Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.Game.ModAPI.Ingame.MyItemInfo

Morten Aune Lyrstad edited this page Apr 16, 2022 · 11 revisions

IndexNamespace Index

MyItemInfo Struct

public struct MyItemInfo

Accessible via GetItemInfo extension method on MyItemType

Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll

Fields

bool IsAmmo

Gets if item type is Ammo

bool IsComponent

Gets if item type is Component

bool IsIngot

Gets if item type is Ingot

bool IsOre

Gets if item type is Ore

bool IsTool

Gets if item type is Tool

float Mass

Mass in Kg

MyFixedPoint MaxStackAmount

Max possible stacks of item in single inventory slot

Vector3 Size

Size in meters

bool UsesFractions

Ores and ingots are fractional. Ordinary items are not

float Volume

Volume in m^3

Clone this wiki locally