MCPcopy Create free account
hub / github.com/Garten/sourcecraft / removePrefix

Method removePrefix

src/source/Material.java:979–984  ·  view source on GitHub ↗
(String s, String prefix)

Source from the content-addressed store, hash-verified

977 }
978
979 private static final String removePrefix(String s, String prefix) {
980 if (s.startsWith(prefix)) {
981 return s.substring(prefix.length(), s.length());
982 }
983 return s;
984 }
985
986 public static int get(String name) {
987 name = removePrefix(name, "minecraft:");

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected