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

Method get

src/main/java/net/minecraftforge/common/ToolType.java:40–48  ·  view source on GitHub ↗

Gets the ToolType for the specified name, or creates a new one if none for that name does yet exist. This method can be called during parallel loading

(String name)

Source from the content-addressed store, hash-verified

38 * This method can be called during parallel loading
39 */
40 public static ToolType get(String name)
41 {
42 return VALUES.computeIfAbsent(name, k ->
43 {
44 if (VALID_NAME.matcher(name).find())
45 throw new IllegalArgumentException("ToolType.get() called with invalid name: " + name);
46 return new ToolType(name);
47 });
48 }
49
50 private final String name;
51

Callers 1

ToolTypeClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected