mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-14 01:14:19 +00:00
Made base class call the onCompiled hook
This commit is contained in:
1 parent
7abb1a885c
commit
e1b50199bb
2 files changed
+4
-2
No files matched your search
@@ -262,7 +262,10 @@ object ASMMixinCompiler
|
||||
def writeStaticBridge(mv: MethodNode, mname: String, t: MixinInfo) =
|
||||
writeBridge(mv, mv.desc, INVOKESTATIC, t.tname, mname, staticDesc(t.name, mv.desc))
|
||||
|
||||
def mixinClasses(name: String, superClass: String, traits: Seq[String]) = {
|
||||
def mixinClasses(name: String, superClass: String, traits: Seq[String]):Class[_] = {
|
||||
if(traits.isEmpty)
|
||||
return cl.findClass(superClass.name.replace('/', '.'))
|
||||
|
||||
val startTime = System.currentTimeMillis
|
||||
|
||||
val baseTraits = traits.map(mixinMap)
|
||||
|
||||
@@ -13,7 +13,6 @@ class ASMMixinFactory[T](val baseType:Class[T], private val paramTypes:Class[_]*
|
||||
private val traitMap = mutable.Map[String, Int]()
|
||||
private val traits = ArrayBuffer[String]()
|
||||
private val classMap = mutable.Map[BitSet, Constructor[_ <: T]]()
|
||||
classMap.put(new BitSet, baseType.getDeclaredConstructor(paramTypes:_*))
|
||||
|
||||
private var ugenid = 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user