MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / deleteShield

Method deleteShield

js/Sign.js:157–163  ·  view source on GitHub ↗

* Delete an existing shield at the requested index. * @param {number} shieldIndex - Position of the shield in the array of shields on this sign to delete.

(shieldIndex,number)

Source from the content-addressed store, hash-verified

155 * @param {number} shieldIndex - Position of the shield in the array of shields on this sign to delete.
156 */
157 deleteShield(shieldIndex,number) {
158 if (number != -1) {
159 this.subPanels[number].shields.splice(shieldIndex, 1);
160 } else {
161 this.shields.splice(shieldIndex, 1);
162 }
163 }
164
165 /**
166 * Creates a new subpanel

Callers 3

deleteShieldFunction · 0.80
clearShieldsFunction · 0.80
deleteShieldFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected