2 * Decompiled with CFR 0.151.
4 * Could not load the following classes:
5 * javassist.CannotCompileException
9 * javassist.CtNewMethod
10 * javassist.NotFoundException
11 * org.gotti.wurmunlimited.modloader.classhooks.HookManager
13 package net
.encode
.wurmesp
.feature
.hook
;
15 import java
.util
.logging
.Level
;
16 import java
.util
.logging
.Logger
;
17 import javassist
.CannotCompileException
;
18 import javassist
.ClassPool
;
19 import javassist
.CtClass
;
20 import javassist
.CtMethod
;
21 import javassist
.CtNewMethod
;
22 import javassist
.NotFoundException
;
23 import net
.encode
.wurmesp
.WurmEspMod
;
24 import org
.gotti
.wurmunlimited
.modloader
.classhooks
.HookManager
;
26 public class ProjectileCellRenderable
{
27 public ProjectileCellRenderable() {
29 ClassPool classPool
= HookManager
.getInstance().getClassPool();
30 CtClass ctWurmArrow
= classPool
.getCtClass("com.wurmonline.client.renderer.cell.ProjectileCellRenderable");
31 CtMethod m
= CtNewMethod
.make((String
)"public void initialize() { return; }", (CtClass
)ctWurmArrow
);
32 ctWurmArrow
.addMethod(m
);
33 WurmEspMod
.logger
.log(Level
.INFO
, "[WurmEspMod] Added method initialize on ProjectileCellRenderable");
35 catch (CannotCompileException
| NotFoundException ex
) {
36 Logger
.getLogger(ProjectileCellRenderable
.class.getName()).log(Level
.SEVERE
, null, ex
);