[email protected] Posted November 6, 2015 Posted November 6, 2015 So i am using the fix as choonster example shows.I can run minecraft fine in eclipse and the texture loads fluids perfectly. The problem comes when i try to gradlew build the error i get is attached as a screenshot. http://www.mediafire.com/view/81y6pgvsa9c67q7/Screenshot_%2811%29.png Quote
Choonster Posted November 6, 2015 Posted November 6, 2015 ForgeGradle compiles your code with Java 6 compatibility by default (the same as Minecraft). If you want to use Java 8 features like lambdas, you need to tell Gradle to compile your code with Java 8 compatibility instead. You can see an example of this here. Keep in mind that users will need to be running Java 8 to use your mod if you do this, Minecraft itself only requires Java 6. If you don't want to compile with Java 8 compatibility, use an anonymous class instead of a lambda. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
[email protected] Posted November 6, 2015 Author Posted November 6, 2015 i have never heard of an anonymous class what is it. How would I make it? Quote
Choonster Posted November 6, 2015 Posted November 6, 2015 http://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html I use anonymous classes that extend StateMapperBase in my ModModelManager class. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
[email protected] Posted November 6, 2015 Author Posted November 6, 2015 Can you point me to your example i do not understand anonymous from java docs the terminology seems confusing. Quote
Choonster Posted November 6, 2015 Posted November 6, 2015 This is what I was referring to. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
[email protected] Posted November 6, 2015 Author Posted November 6, 2015 I do not know what a lambda is or anything. That is java far more advanced then what I am trying to do which is add fluids. Can you just show how to make an anonymous class out of the interface Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.