MCPcopy Create free account
hub / github.com/FabricMC/Matcher / withMapped

Method withMapped

src/main/java/matcher/NameType.java:47–63  ·  view source on GitHub ↗
(boolean value)

Source from the content-addressed store, hash-verified

45 }
46
47 public NameType withMapped(boolean value) {
48 if (mapped == value) return this;
49
50 if (value) {
51 if (aux > 0) return VALUES[MAPPED_AUX_PLAIN.ordinal() + aux - 1];
52 if (tmp) return MAPPED_TMP_PLAIN;
53 if (plain) return MAPPED_PLAIN;
54
55 return MAPPED;
56 } else {
57 if (aux > 0) return VALUES[(plain ? AUX_PLAIN : AUX).ordinal() + aux - 1];
58 if (tmp) return TMP_PLAIN;
59 if (this == MAPPED_LOCTMP_PLAIN) return LOCTMP_PLAIN;
60
61 return PLAIN;
62 }
63 }
64
65 public NameType withAux(int index, boolean value) {
66 if ((aux - 1 == index) == value) return this;

Callers 8

saveMethod · 0.95
updateMethod · 0.95
updateClassTreeMethod · 0.80
getNameMethod · 0.80
getMappedNameMethod · 0.80
initMethod · 0.80
updateSelectionsMethod · 0.80
getNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected