Difference between revisions of "InvRef"
Jump to navigation
Jump to search
(Add UnofficialLua warning) |
ROllerozxa (talk | contribs) (point to more up to date places) |
||
Line 1: | Line 1: | ||
{{UnofficialLua}} | {{UnofficialLua}} | ||
− | Reference to an inventory. | + | Reference to an inventory. See the [https://minetest.gitlab.io/minetest/class-reference/#invref Lua API documentation] for more info. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Caveats == | == Caveats == | ||
− | * A common mistake is to get an [[ItemStack]] from an inventory, change it, and expect the changes to carry through to the inventory. | + | * A common mistake is to get an [[ItemStack]] from an inventory, change it, and expect the changes to carry through to the inventory. See [https://rubenwardy.com/minetest_modding_book/en/quality/common_mistakes.html#set-itemstacks-after-changing-them Set ItemStacks after changing them] in the modding book. |
[[Category:Objects]] | [[Category:Objects]] |
Latest revision as of 08:41, 25 October 2022
This page contains unofficial, low-quality Lua API documentation and is likely to be outdated or wrong. Do not rely on it! For the official and up-to-date documentation, see Lua API Documentation. |
This page has been proposed for deletion for the following reason: "Contains unofficial and potentially outdated, redundant and inconsistent Lua API information" If you don't think that this page should be deleted, please explain why on the talk page. |
Reference to an inventory. See the Lua API documentation for more info.
Caveats
- A common mistake is to get an ItemStack from an inventory, change it, and expect the changes to carry through to the inventory. See Set ItemStacks after changing them in the modding book.