MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getStatus

Method getStatus

common/buildcraft/lib/BCLibDatabase.java:90–103  ·  view source on GitHub ↗
(LibraryEntryHeader header)

Source from the content-addressed store, hash-verified

88 }
89
90 public static EntryStatus getStatus(LibraryEntryHeader header) {
91 boolean local = LOCAL_DB.getAllHeaders().contains(header);
92 boolean remote = true;
93 if (remoteDB != null) {
94 remote = remoteDB.getAllHeaders().contains(header);
95 }
96 if (local) {
97 if (remote) return EntryStatus.BOTH;
98 else return EntryStatus.LOCAL;
99 } else {
100 if (remote) return EntryStatus.REMOTE;
101 else return EntryStatus.NEITHER;
102 }
103 }
104
105 // ILibraryStackHandler quick-read
106

Callers 2

drawForegroundLayerMethod · 0.95
mouseClickedMethod · 0.95

Calls 2

containsMethod · 0.65
getAllHeadersMethod · 0.45

Tested by

no test coverage detected