ItemStack

Inherits: Resource

There is currently no description for this class. Please help us by contributing one!

Properties

int

amount

0

String

item_id

""

Dictionary

properties

{}

Methods

bool

contains(item: String, amount: int = 1) const

void

deserialize(data: Array)

bool

has_valid() const

Array

serialize() const


Signals

updated() πŸ”—

There is currently no description for this signal. Please help us by contributing one!


Property Descriptions

int amount = 0 πŸ”—

  • void set_amount(value: int)

  • int get_amount()

There is currently no description for this property. Please help us by contributing one!


String item_id = "" πŸ”—

  • void set_item_id(value: String)

  • String get_item_id()

Defining which item_id is used from InventoryDatabase.items.


Dictionary properties = {} πŸ”—

  • void set_properties(value: Dictionary)

  • Dictionary get_properties()

Custom properties of this item. Example β€œdurability”.


Method Descriptions

bool contains(item: String, amount: int = 1) const πŸ”—

There is currently no description for this method. Please help us by contributing one!


void deserialize(data: Array) πŸ”—

There is currently no description for this method. Please help us by contributing one!


bool has_valid() const πŸ”—

There is currently no description for this method. Please help us by contributing one!


Array serialize() const πŸ”—

There is currently no description for this method. Please help us by contributing one!