MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / remove

Method remove

src/main/java/data/Switcher.java:105–119  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

103 }
104
105 public static Switcher remove(String name) {
106 name = Strings.stripGlyphs(Strings.stripColors(name.replace('_', ' '))).strip().toLowerCase();
107 Switcher value;
108
109 if (lobby != null && name.equals(lobby.name)) {
110 value = lobby;
111 lobby = null;
112
113 } else {
114 value = list.remove(name);
115 ordonedList.remove(value);
116 }
117
118 return value;
119 }
120
121 public static Switcher getByName(String name) {
122 return list.get(Strings.stripGlyphs(Strings.stripColors(name.replace('_', ' '))).strip().toLowerCase());

Callers 2

putMethod · 0.45

Calls 1

stripGlyphsMethod · 0.95

Tested by

no test coverage detected