MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / push

Method push

panel/src/app/service/visual_data.ts:16–23  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

14 }
15
16 push(data: T) {
17 if (this.arr.length < this.maxSize) {
18 this.arr.push(data);
19 } else {
20 this.arr.shift();
21 this.arr.push(data);
22 }
23 }
24
25 getArray() {
26 return this.arr;

Callers 14

requestSpeedLimitFunction · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
multiOperationForwardingFunction · 0.45
getInstancesByUuidFunction · 0.45
getInfosByHashesMethod · 0.45
searchModrinthMethod · 0.45
getFrontendLayoutConfigFunction · 0.45
setUserInstancesMethod · 0.45
formatInstanceDataFunction · 0.45
listMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected