MCPcopy Create free account
hub / github.com/badvision/jace / addCard

Method addCard

src/main/java/jace/core/RAM.java:90–96  ·  view source on GitHub ↗
(Card c, int slot)

Source from the content-addressed store, hash-verified

88 }
89
90 public void addCard(Card c, int slot) {
91 removeCard(slot);
92 cards[slot] = Optional.of(c);
93 c.setSlot(slot);
94 c.attach();
95 configureActiveMemory();
96 }
97
98 public void removeCard(Card c) {
99 removeCard(c.getSlot());

Callers 1

insertCardMethod · 0.80

Calls 4

removeCardMethod · 0.95
configureActiveMemoryMethod · 0.95
setSlotMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected