I was wondering if it is possible to use a sub class to add more variables to a super class and be able to call that variable from the super class.
Here is relevant code to the project I am working on, and was hoping to get this figured out.
Simple class, I will be adding more to it after I can get this to work.
Code:
Now here is the iu class that the previous code is referring to:
Code:
I am trying not to modify the existing code if at all possible as I am making a mod that is compatible with a mod loader.
Any and all help is appreciated, thanks.
P.S. If you need more data, just let me know and I will get it for you.
Here is relevant code to the project I am working on, and was hoping to get this figured out.
Simple class, I will be adding more to it after I can get this to work.
Code:
public class MDMats extends iu{
public static final iu ironMDMat = new iu();
}
Now here is the iu class that the previous code is referring to:
Code:
public class iu
{
public static final iu a = new ja();
public static final iu b = new iu();
public static final iu c = new iu().f();
public static final iu d = new iu();
public static final iu e = new iu();
public static final iu f = new of();
public static final iu g = new of();
public static final iu h = new iu().f();
public static final iu i = new ae();
public static final iu j = new iu();
public static final iu k = new iu().f();
public static final iu l = new ja();
public static final iu m = new iu();
public static final iu n = new ae();
public static final iu o = new iu();
public static final iu p = new iu().f();
public static final iu q = new iu();
public static final iu r = new iu();
public static final iu s = new ae();
public static final iu t = new iu();
public static final iu u = new iu();
public static final iu v = new iu();
public static final iu w = new iu();
public static final iu x = new iu();
public static final iu y = new iu();
private boolean z;
public boolean d()
{
return false;
}
public boolean a()
{
return true;
}
public boolean b() {
return true;
}
public boolean c() {
return true;
}
private iu f() {
this.z = true;
return this;
}
public boolean e() {
return this.z;
}
}
I am trying not to modify the existing code if at all possible as I am making a mod that is compatible with a mod loader.
Any and all help is appreciated, thanks.
P.S. If you need more data, just let me know and I will get it for you.