Class CoremodUtils

java.lang.Object
net.neoforged.neoforge.coremods.CoremodUtils

final class CoremodUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final com.google.gson.Gson
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) static org.objectweb.asm.tree.FieldNode
    getFieldByName(org.objectweb.asm.tree.ClassNode classNode, String fieldName)
     
    (package private) static org.objectweb.asm.tree.MethodNode
    getMethodByDescriptor(org.objectweb.asm.tree.ClassNode classNode, @Nullable String methodName, String methodSignature)
     
    (package private) static <T> T
    loadResource(String filename, com.google.gson.reflect.TypeToken<T> type)
     
    (package private) static <T> T
    loadResource(String filename, Class<T> type)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • GSON

      private static final com.google.gson.Gson GSON
  • Constructor Details

    • CoremodUtils

      CoremodUtils()
  • Method Details

    • loadResource

      static <T> T loadResource(String filename, com.google.gson.reflect.TypeToken<T> type)
    • loadResource

      static <T> T loadResource(String filename, Class<T> type)
    • getFieldByName

      static org.objectweb.asm.tree.FieldNode getFieldByName(org.objectweb.asm.tree.ClassNode classNode, String fieldName)
    • getMethodByDescriptor

      static org.objectweb.asm.tree.MethodNode getMethodByDescriptor(org.objectweb.asm.tree.ClassNode classNode, @Nullable @Nullable String methodName, String methodSignature)