MCPcopy
hub / github.com/walterhiggins/ScriptCraft / getTargetedBy

Function getTargetedBy

src/main/js/modules/signs/signs.js:118–124  ·  view source on GitHub ↗
(livingEntity)

Source from the content-addressed store, hash-verified

116}
117
118function getTargetedBy(livingEntity) {
119 var location = utils.getMousePos(livingEntity);
120 if (!location) {
121 return null;
122 }
123 return hasSign(utils.blockAt(location));
124}
125exports.getTargetedBy = getTargetedBy;
126exports.hasSign = hasSign;

Callers

nothing calls this directly

Calls 1

hasSignFunction · 0.85

Tested by

no test coverage detected