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

Method withAux

src/main/java/matcher/NameType.java:65–78  ·  view source on GitHub ↗
(int index, boolean value)

Source from the content-addressed store, hash-verified

63 }
64
65 public NameType withAux(int index, boolean value) {
66 if ((aux - 1 == index) == value) return this;
67
68 if (value) {
69 if (mapped) return VALUES[MAPPED_AUX_PLAIN.ordinal() + index];
70 if (plain) return VALUES[AUX_PLAIN.ordinal() + index];
71
72 return VALUES[AUX.ordinal() + index];
73 } else {
74 if (mapped) return MAPPED_PLAIN;
75
76 return PLAIN;
77 }
78 }
79
80 public NameType withTmp(boolean value) {
81 if (tmp == value) return this;

Callers 2

initMethod · 0.80
updateSelectionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected