MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / forName

Method forName

Utils/src/eu/the5zig/util/ReflectionUtil.java:5–11  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

3public class ReflectionUtil {
4
5 public static Class<?> forName(String name) {
6 try {
7 return Class.forName(name);
8 } catch (ClassNotFoundException e) {
9 throw new RuntimeException("Class '" + name + "' not found!");
10 }
11 }
12
13 public static <T> T cast(Class<T> c, Object o) {
14 return c.cast(o);

Callers 15

initChannelMethod · 0.80
channelRead0Method · 0.80
openConnectionMethod · 0.80
MinecraftFactoryClass · 0.80
GuiClass · 0.80
CrashReportUtilClass · 0.80
GLUtilClass · 0.80
getMinecraftIconMethod · 0.80
acceptOptionsMethod · 0.80
getMinecraftIconMethod · 0.80
acceptOptionsMethod · 0.80
getMinecraftIconMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected