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

Method fuelAmount

source/game/scripting/StarItemLuaBindings.cpp:155–157  ·  view source on GitHub ↗

Returns the amount of fuel given for buring this item stack in an engine @return an integer representing the amount of fuel in the entire stack

Source from the content-addressed store, hash-verified

153//
154// @return an integer representing the amount of fuel in the entire stack
155unsigned LuaBindings::ItemCallbacks::fuelAmount(Item* item) {
156 return item->instanceValue("fuelAmount", 0).toUInt();
157}
158
159// Returns the iconDrawables for this item serialized into json
160//

Callers

nothing calls this directly

Calls 2

toUIntMethod · 0.80
instanceValueMethod · 0.80

Tested by

no test coverage detected