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

Method getCard

src/main/java/jace/core/RAM.java:83–88  ·  view source on GitHub ↗
(int slot)

Source from the content-addressed store, hash-verified

81 }
82
83 public Optional<Card> getCard(int slot) {
84 if (slot >= 1 && slot <= 7) {
85 return cards[slot];
86 }
87 return Optional.empty();
88 }
89
90 public void addCard(Card c, int slot) {
91 removeCard(slot);

Callers 2

insertCardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected