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

Method getByName

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

Source from the content-addressed store, hash-verified

119 }
120
121 public static Switcher getByName(String name) {
122 return list.get(Strings.stripGlyphs(Strings.stripColors(name.replace('_', ' '))).strip().toLowerCase());
123 }
124
125 public static Switcher getByIP(String ip) {
126 return ordonedList.find(i -> ip.equals(i.address()));

Callers 1

Calls 2

stripGlyphsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected