First Commit
[esp.git] / src / net / encode / wurmesp / feature / hook / ProjectileCellRenderable.java
1 /*
2 * Decompiled with CFR 0.151.
3 *
4 * Could not load the following classes:
5 * javassist.CannotCompileException
6 * javassist.ClassPool
7 * javassist.CtClass
8 * javassist.CtMethod
9 * javassist.CtNewMethod
10 * javassist.NotFoundException
11 * org.gotti.wurmunlimited.modloader.classhooks.HookManager
12 */
13 package net.encode.wurmesp.feature.hook;
14
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;
25
26 public class ProjectileCellRenderable {
27 public ProjectileCellRenderable() {
28 try {
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");
34 }
35 catch (CannotCompileException | NotFoundException ex) {
36 Logger.getLogger(ProjectileCellRenderable.class.getName()).log(Level.SEVERE, null, ex);
37 }
38 }
39 }
40