Hey, Is it possible to replace Class files in CraftBukkit in a plugin? Like Modifying the BlockIce.java to say what i want in a plugin form? Thanks
Not currently, no. In some cases you can make a new class that extends a class in the server within your plugin, but that's not always useful. What is it you are trying to do? Perhaps there is an alternative.
In: BiomeBase.java There is a Class Array: protected Class[] s; Unfortuantely this is protected. I want to add a class file to this array. Possible? And thanks for the help.
You may like to have a look at this article: http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.html Gotta love reflection.
Oooh nice. Will try it out! Thanks Okay i have made good progress. However there is 2 problems. One the EntityX.class has to be in net.minecraft.server This is a sealed package... So the only way i have done it is physically inseting the class into it. Also Dilemma 2. BiomeBase.java is called on sever startup, if this is not modified before startup it will not spawn EntityX. Thus modifiying it after startup is futile. So i have it working but would rather want it to be all plugin based without CB modification as such. Thanks again for the help ps Sorry for my bad english it is not my first. EDIT by Moderator: merged posts, please use the edit button instead of double posting.