Good Evening,
I am currently working on a mod that adds a tree that grows spawn eggs for each mob with spawneggs in the game at runtime.
Why? Well, just to learn java as I come from C++ and vb.net and to have some fun.
However the following problem presented itself to me and I seem, at least up to this point, incapable of solving it.
As I simply check the EntityList.entityEggs HashMap and change the colour and
statistics of the BaseTree based on the Itemdamage, I do not know all the names before compile time.
Or to be frank, I cannot know them, as it generates a tree for any mob of any mod that is added.
With the change to 1.7.2/1.7.10 you can name objects by means of language files.
And unfortunately I have never worked with those before so I don't know how to change them in runtime.
I searched quite vehemently but either I am as blind as a blind goat, or I didn't find anything worthwhile.
The only current possibility I see is writing to the file by means of a FileWriter
and hoping I can get the minecraft source code to reload the names after I adjusted them.
If necessary by overwriting one or two classes.
But, I am reluctant to do so and am wondering if Mojang or forge implemented a method
I overlooked to do so without the need of a feature that would normally be used for saving.
Most likely the solution is quite obvious and should that indeed be the case my apologies for the trouble.
Greetings,
Black
P.S.: I suggest adding the word 'Mojang' to the spell list as it currently suggests I change it to the word 'Mekong'.