MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / descriptor

Method descriptor

source/game/scripting/StarItemLuaBindings.cpp:107–109  ·  view source on GitHub ↗

Returns the descriptor of this item @return a table containing a serialized item descriptor

Source from the content-addressed store, hash-verified

105//
106// @return a table containing a serialized item descriptor
107Json LuaBindings::ItemCallbacks::descriptor(Item* item) {
108 return item->descriptor().toJson();
109}
110
111// Returns the item description
112//

Callers 7

recipeForMaterialsMethod · 0.45
createItemMethod · 0.45
createTreasureMethod · 0.45
makePlayerCallbacksMethod · 0.45
makeWorldCallbacksFunction · 0.45
takeItemDropMethod · 0.45

Calls 1

toJsonMethod · 0.45

Tested by

no test coverage detected