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