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

Method placementHueShift

source/game/items/StarMaterialItem.cpp:487–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487MaterialHue MaterialItem::placementHueShift(Vec2I const& pos) const {
488 if (auto hue = instanceValue("materialHueShift")) {
489 return materialHueFromDegrees(hue.toFloat());
490 } else if (auto worldClient = as<WorldClient>(world())) {
491 auto worldTemplate = worldClient->currentTemplate();
492 return worldTemplate->biomeMaterialHueShift(worldTemplate->blockBiomeIndex(pos[0], pos[1]), m_material);
493 } else {
494 return materialHueShift();
495 }
496}
497
498}

Callers

nothing calls this directly

Calls 5

materialHueFromDegreesFunction · 0.85
toFloatMethod · 0.80
biomeMaterialHueShiftMethod · 0.80
blockBiomeIndexMethod · 0.80
currentTemplateMethod · 0.45

Tested by

no test coverage detected