Item attributes. ItemProtoCore subclass. Items are described in detail in Items and Bundles article.

Methods

getBool (a:String):Bool

Returns item attribute value as Bool.

Parameters:

a

Attribute name.

Returns:

Attribute value. Returns false if the attribute is not found.

inline getDynamic (a:String):Dynamic

Returns item attribute value as Dynamic.

Parameters:

a

Attribute name.

Returns:

Attribute value. Returns null if the attribute is not found.

getFloat (a:String):Float

Returns item attribute value as Float.

Parameters:

a

Attribute name.

Returns:

Attribute value. Returns 0 if the attribute is not found.

getInt (a:String):Int

Returns item attribute value as Int.

Parameters:

a

Attribute name.

Returns:

Attribute value. Returns 0 if the attribute is not found.

inline getRaw ():Dynamic

Returns raw item attributes object.

Returns:

Raw item attributes object.

getString (a:String):String

Returns item attribute value as String.

Parameters:

a

Attribute name.

Returns:

Attribute value. Returns null if the attribute is not found.