New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing BAPI into minecraft forge #118
Conversation
Please re-work your code to follow the coding style of the rest of minecraft, also, providing a sample mod would be most useful. As well as a full explanation of what you're trying to achieve. |
I like this and I have wanted this but apperantly yeah coding style is off. |
I'll fix the coding style ASAP and what am I trying to achieve is import my API into forge, for more information you can visit my website(http://www2.arnes.si/~pmati/BAPI.html) or for some old examples of the API usage visit http://www2.arnes.si/~pmati/BAPIm.html |
This is the last commit that I have planned, please tell me if you need more information or any help about it. |
I believe that forge is using four spaces per ident while you've used two. Also forge has spaces after "if"s and "else"s are on lines of their own. |
4 spaces |
I couldn't find any other astyle configs than the one inside forge/fml/conf so I used that one and I hope this is what you were looking for. EDIT: This is weird, I just pushed twice and it doesn't show up EDIT2: It's Ok now, the commit is showing up |
Taking a quick glance at it: Your callbacks should be in the form of (world, x, y, z) not (id, metadata) As for your biome stuff, could things not be done externally to keep the base edits down? |
For access transformer I added these lines at the bottom of the file BiomeGenBasepublic vj.a(Ljava/lang/Float, Ljava/lang/Float;) # setTemperatureRainfall() But when I did that I got this exception I can remove the NBTHelper, but it's a Helper that just helps you, althought I can remove it and create two new events for player save/load event, that would make me drop the save handler, but edit ServerConfigurationManager what would be better, but I have no idea how to create a patch out of that, since there allready is a patch for it. Where haven't I used @OverRide ? You are probably reffering to BlockFlower right? Well I tried that in BAPI V1.1.0 and it showed up as a fail because every here and there when generating new chunks or new world it crashed with NPE if I remember correctly, thats the time when I cahnged it to provide only id and metadata. When adding directly to that static list I get this exception |
http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#84645 Yes I was reffering to Flower for the Override, and having mentioned that NPE concerns me. Don't ADD to the list, SET the list to something that just happens to be the contents of the old list, plus more. |
Ok so I have everything worked out, but the ServerConfigurationManager patch, the problem is I need to merge the two patches together, but I don't have the knowledge to do so, any adwise? |
If I'm understanding correctly, you want to merge 2 of your patches together? Use the GUI app or the merge command. On Aug 16, 2012, at 7:51 PM, batlefield notifications@github.com wrote:
|
So I edited my events and also inside the BlockFlower I don't override any other methods so I don't really need @OverRide. Allso I made MapGenVillage unedited. |
As long as you use the git setup, and update_patches scripts you should be fine. Anyways, also please go through and cleanup your current patches, I see one in there still that simply is superfluousimports. |
This API allowed you to allow custom plant placing options and allso some biome controling options