示例#1
0
 public ModelLD getLDModel() {
   FieldHook fh = currentHook.getFieldHook("getModel");
   if (fh != null) {
     Object data = fh.getData(currentObject);
     if (data != null) return new ModelLD(data);
   }
   return null;
 }
示例#2
0
 public ObjectDefLoader getObjectDefLoader() {
   FieldHook fh = currentHook.getFieldHook("getObjectDefLoader");
   if (fh != null) {
     Object data = fh.getData(currentObject);
     if (data != null) return new ObjectDefLoader(data);
   }
   return null;
 }
示例#3
0
 public NodeList getNodeList() {
   FieldHook fh = currentHook.getFieldHook("getNodeList");
   if (fh != null) {
     Object data = fh.getData(currentObject);
     if (data != null) return new NodeList(data);
   }
   return null;
 }
示例#4
0
 public int getID() {
   FieldHook fh = currentHook.getFieldHook("getID");
   if (fh != null) {
     Object data = fh.getData(currentObject);
     if (data != null) return (Integer) data * fh.getMultiplier();
   }
   return -1;
 }
示例#5
0
 public InterfaceChild[] getChildren() {
   FieldHook fh = currentHook.getFieldHook("getChildren");
   if (fh != null) {
     Object array = fh.getData(currentObject);
     if (array != null) {
       InterfaceChild[] children = new InterfaceChild[Array.getLength(array)];
       for (int i = 0; i < children.length; ++i)
         children[i] = new InterfaceChild(Array.get(array, i), this, i);
       return children;
     }
   }
   return new InterfaceChild[] {};
 }