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

Function hasSign

src/main/js/modules/signs/signs.js:98–110  ·  view source on GitHub ↗

## Signs Module The Signs Module can be used by plugin authors to create interactive signs - that is - signs which display a list of choices which can be changed by interacting (right-clicking) with the sign. ### signs.menu() function This function is used to construct a new interactive menu on t

(block)

Source from the content-addressed store, hash-verified

96
97***/
98function hasSign(block) {
99 if (__plugin.canary) {
100 if (block && block.tileEntity && block.tileEntity.setTextOnLine) {
101 return block.tileEntity;
102 }
103 }
104 if (__plugin.bukkit) {
105 if (block && block.state && block.state.setLine) {
106 return block.state;
107 }
108 }
109 return false;
110}
111var utils = require('utils');
112var menu = require('./menu')(hasSign);
113// include all menu exports

Callers 3

getTargetedByFunction · 0.85
signMenuFunction · 0.85
menu.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected