Forge and minecraft load up find, but when I try to load a world, or make a new world, it just resets me back to the main menu.
https://www.dropbox.com/s/pro6cnwyd9n9u63/fml-client-latest.log?dl=0 <--Full client log can be found here.
There is no related crash log.
IT WORKS IT WORKS THANK YOU IT WORKS!
I'd registered FireColoredBase to try and make instanceof works, but turns out that was wrong, so now it's not registered, so that's fixed.
Will probably just give my fire block a normal full block bounding box to make it easier to click and not have to add lots of code. That shouldn't make it solid form what I've seen.
What part of the naming convention did I screw up? My Java prof taught about 4 different naming conventions (none of which I'm actually convinced are the right one).
Event Handler is here:
https://github.com/WolfAmaril/ColoredFlame/blob/master/src/main/java/com/wolfamaril/coloredflame/handler/EventHandler.java
Registration is during Init here:
https://github.com/WolfAmaril/ColoredFlame/blob/master/src/main/java/com/wolfamaril/coloredflame/ColoredFlames.java
And given that it just took me four tries to make git push to Github, I'm gonna go sleep.
Just spent a few hours trying to get this to work and, while I understand the theory behind it, I can't seem to get the Subscribe event so work right, and my EventHandler class is just kinda meh.
After some research, experimenting, and playing around with mods that are made by people vastly more skilled in Java than I, I have determined one thing.
This is probably one of the hardest things to attempt to do with a mod.
That is to say, make a custom fire block that goes out when hit.
Also, I am tired, it's the start of (my) weekend, so I'm just gonna sleep on it for a bit.
Ok, pretty sure I almost got it, but I the problem is performing a correct override breaks the extinguishFire method, which requires the int blockDirection, and adding the int blockDirection to my onBlockClicked deceleration breaks the override.
Where would I start fixing this?
Wait, no, I think I have an idea. Is there a forge hook to get the direction a block was clicked from?
and three seconds after you point out the problem, I have it fixed by changing "this" to "world".
Which I had been trying for the last hour and a half with the wrong capitalization.
Now I just need to figure out why my onBlockClicked isn't being called.
Congratulations, you just figured out the reason I'm writing basic mods for minecraft.
The answer: Cause the Java classes available to me are next to useless.
So either help, or stop filling up this thread and let somebody who's willing to help do it.
Also, I'd already figured out the part about needing an instance of world, and getting it from the onBlockClicked method. I just don't know how to put it into my extinguishFire method.
Here's the code https://github.com/WolfAmaril/ColoredFlame/blob/master/src/main/java/com/wolfamaril/coloredflame/block/BlockFireColoredBase.java
OK, so I copied the code over, changed the relevant parts, and now I'm getting 4 more "non-static method cannot be referenced from a static context" errors.
So I poked around, got a few errors, and now have this
However, I'm now getting "non-static method cannot be referenced from a static context"
So how do I fix that, as nowhere in the class I'm working on does it call anything static.