Item
getActionType
Returns the item's action type (e.g., clothing, seed).
getActionType()getCategoryType
Returns the category type of an item (as a bitflag integer).
getCategoryType()getClothingType
Returns the clothing type of an item.
getClothingType()getEditableType
Returns the editable type of an item.
getEditableType()getGems
Returns the number of gems an item would drop. Pass world and player arguments (optional) to include buffs.
item:getGems(world, player)getGrowTime
Returns the item's grow time in seconds.
getGrowTime()getID
Returns the item's ID.
getID()getName
Returns the item's name.
getName()getNetID
Returns the item's net ID (same as item ID).
getNetID()getRarity
Returns the item's rarity.
getRarity()getXP
Returns the amount of XP an item would give. Pass world and player arguments (optional) to include buffs.
item:getXP(world, player)isObtainable
Returns true if the item is obtainable.
isObtainable()setActionType
Sets the action type for an item globally.
item:setActionType(type)setCategoryType
Sets the category type for an item globally, using bit flags.
item:setCategoryType(value)setClothingType
Sets the clothing type for an item globally.
item:setClothingType(typeID)setDescription
Sets the description for an item globally.
item:setDescription(text)setEditableType
Sets the editable type for an item globally.
item:setEditableType(value)setGrowTime
Sets the grow time for an item globally.
item:setGrowTime(seconds)setPrice
Sets the price of the item.
item:setPrice(price)