MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / getField

Method getField

src/main/java/gregapi/util/UT.java:2511–2518  ·  view source on GitHub ↗
(Object aObject, String aField)

Source from the content-addressed store, hash-verified

2509 }
2510
2511 public static Field getField(Object aObject, String aField) {
2512 Field rField = null;
2513 try {
2514 rField = aObject.getClass().getDeclaredField(aField);
2515 rField.setAccessible(T);
2516 } catch (Throwable e) {/*Do nothing*/}
2517 return rField;
2518 }
2519
2520 public static Field getField(Class<?> aObject, String aField) {
2521 Field rField = null;

Callers 4

startMethod · 0.80
onModPreInit2Method · 0.80
onPostLoadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected