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

Method modItemDrop

source/game/StarMaterialDatabase.cpp:395–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395ItemDescriptor MaterialDatabase::modItemDrop(ModId modId) const {
396 if (isRealMod(modId)) {
397 auto modInfo = getModInfo(modId);
398 if (!modInfo->itemDrop.empty())
399 return ItemDescriptor(modInfo->itemDrop, 1);
400 }
401
402 return {};
403}
404
405MaterialColorVariant MaterialDatabase::materialColorVariants(MaterialId materialId) const {
406 if (isRealMaterial(materialId)) {

Callers 2

handleIncomingPacketsMethod · 0.80
destroyBlockMethod · 0.80

Calls 3

isRealModFunction · 0.85
ItemDescriptorClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected