MCPcopy Create free account
hub / github.com/Teneted/Tenet / normalizeName

Method normalizeName

src/main/java/org/bukkit/Material.java:8635–8637  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

8633
8634 // use a normalize() function to ensure it is accessible after a round-trip
8635 public static String normalizeName(String name) {
8636 return name.toUpperCase(java.util.Locale.ENGLISH).replaceAll("(:|\\s)", "_").replaceAll("\\W", "");
8637 }
8638
8639 public static Material addMaterial(String materialName, int id, boolean isBlock) {
8640 // Forge Blocks

Callers 2

Calls 1

toUpperCaseMethod · 0.80

Tested by

no test coverage detected