SOL?
Sh*t Out of Luck.
His option is to either check all the blocks that could possibly be providing power (6 for strong, significantly more for weak) or nothing.
You're probably going to have to make a dummy API (or several, actually) to act as placeholders for the classes from those other mods that don't exist.
Because:
this.blockIcon = par1iconregister.registerIcon("[oreJuli]");
Your registering things wrong. It's looking for a file named "[oreJuli]" (including those brackets!) in the /mods/textures/blocks folder.
17th time I've posted this:
That is not how you should be doing things.
The two input slots handle whether or not the item is valid, the TileEntity should handle if both slots are filled and put the output item in the output slot.
This is wrong.
You want Juli.oreJuli.blockID
Type errors are a very good thing to check:
var i = new Object();
if(rand.nextBoolean()) {
i = 3;
}
i.prop = 9;
That should not compile.
When you put a function in a class it is assumed that you need it in that class. You're not using it in that class (it is, in fact, identical to the isItemValid function) but you want to call that function from another class....why?
I've gotten into using type restrictions in Flash because it's faster.
Otherwise this is valid code (and not only will compile, but will run:
var i = 1.333;
i += 0x1;
i = new Object();
i.random = 2;
There are good reasons for getters/setters. For example if setting the property means that some other flags or variables need to get set as a result. A good example is the setters that cause datawatchers to update. Likewise health (forcing every effect that CAN reduce an entity to 0 hp having to manage that entity dying would be absurd, instead you can manage that inside the setter!).
Eh. My C* is a bit rusty. I can't write applications from the ground up, much less one with a GUI or any rendering. Most of what I do is either in Unity3D, Flash, or web-based.
As far as I'm concerned the only difference between Java and Flash is how variables are declared.
("int a;" vs. "var a:int;")
Oh, and having to deal with Floats and Doubles not being the same thing and can't convert between them implicitly.
"You can probably pick it up while writing mods." I am going to kick the person who wrote that.
It's not technically incorrect. I didn't know Java and started writing mods. I did, however, have prior programming experience in multiple languages (C++, C#, Javascript, Actionscript 2, Actionscript 3...).