Posted November 6, 20159 yr 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
November 6, 20159 yr 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. 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.
November 6, 20159 yr Author i have never heard of an anonymous class what is it. How would I make it?
November 6, 20159 yr http://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html I use anonymous classes that extend StateMapperBase in my ModModelManager class. 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.
November 6, 20159 yr Author Can you point me to your example i do not understand anonymous from java docs the terminology seems confusing.
November 6, 20159 yr This is what I was referring to. 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.
November 6, 20159 yr Author 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
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.