Page 1 of 3

Java

Posted: Wed Apr 10, 2013 2:23 pm
by TechnoProdigy
I've been thinking of making custom minecraft plugins, but I know nothing about Java. If one of you could help me, point me in the direction of someone who does know Java/a simplistic guide on Java, or could program the plugin for me, that'd be great.

Re: Java

Posted: Wed Apr 10, 2013 2:35 pm
by hippoface
Amidoinitrite?

Image

Re: Java

Posted: Wed Apr 10, 2013 2:38 pm
by TechnoProdigy
This is a serious thread. If you have nothing to contribute, please do not post here.

Re: Java

Posted: Wed Apr 10, 2013 2:40 pm
by shaddowdemon
TechnoProdigy wrote:I've been thinking of making custom minecraft plugins, but I know nothing about Java. If one of you could help me, point me in the direction of someone who does know Java/a simplistic guide on Java, or could program the plugin for me, that'd be great.
The actual Sun Java tutorials have some useful information. I've never actually gone through them, but occasionally when I google something about Java, they will pop up.

They are located here: http://docs.oracle.com/javase/tutorial/

Specifically, it looks like this page would be highly useful: http://docs.oracle.com/javase/tutorial/java/index.html

How well you can learn it and how fast depends on if you've learned other languages and other general programming concepts (like data structures and basic algorithm construction). Specifically, Java is an object-oriented programming language, so if you've used other OO languages, you will be fine. Otherwise, the learning curve for actually understanding what your program does is probably a bit steep (as opposed to copying code and then trying to adapt it).

I use the Minecraft Coder Pack to decompile the Minecraft jar file and then manually inject my code into the source, calling functions in the API that I made. However, I would not recommend this approach. It is why my mod is not compatible with other mods. Modding APIs like ModLoader or MCForge do that part for you, and then you just fill in functions to do stuff (for the most part). They didn't seem to be able to do what I wanted when I first started shaddowcraft... I would use one of them if it didn't mean rewriting all of my code. I believe that is how Bukkit plugins work too... I've never coded one though.

Re: Java

Posted: Wed Apr 10, 2013 3:21 pm
by FaeynHeart
What do you want exactly? Do you want to learn Java for Minecraft (client) or Minecraft (server) or just general Java?

If you already know how to code then it's just learning about the API :P
But if you don't, the OOP will might be hard for you (if you go straight to the Minecraft source).

Re: Java

Posted: Wed Apr 10, 2013 4:03 pm
by TechnoProdigy
I want to learn how to code plug-ins for a Minecraft server, which to my knowledge requires knowledge of Java.

Re: Java

Posted: Wed Apr 10, 2013 4:07 pm
by Ratta237
Tried to learn java once, I got a book at the library and it was 1000 pages long and the size of 3 bricks.

Re: Java

Posted: Wed Apr 10, 2013 4:12 pm
by mbilly333
A good place to start for you might be a guy called thenewboston. He has some pretty good tutorials and best of all, it's free. ;) Goodluck!

thenewboston.org

Re: Java

Posted: Wed Apr 10, 2013 5:16 pm
by alexrybicki
Java can be coded with a simple text editor, however people on the windows side of things seem to prefer notepad++. http://notepad-plus-plus.org/ If you want a solid free IDE, Eclipse http://eclipse.org/downloads/ is the de-facto standard. If you don't want to go thru the hassle of downloading an IDE, http://ideone.com/ is super-awesome, although your code may or may not run, depending on what libraries you're using.

The real question is are you familiar with object oriented programming? Java syntax is pretty cumbersome, but once you get it it's not too bad.


As far as textbooks go...my favorite is http://www.amazon.com/Introduction-Prog ... 0132936526 Although if you want to buy it, it's $117, which may or may not be worth it to you. You should be able to find a copy at a library. There's a lot of other cheaper books out there http://www.amazon.com/gp/bestsellers/books/3612/ But I can't really recommend any of them as I havn't read them ;)

There's thousands of java tutorials out there on youtube.
http://vimeo.com/user697355/videos
http://www.academicearth.org/courses/pr ... 1/show:500
https://www.youtube.com/user/bjhecker?feature=watch
https://www.youtube.com/user/thenewbost ... &flow=grid

There's a couple low-level forgecraft programming tutorial youtube channels, however I can't find them. I'll update once I do.
Hope that helps.

Re: Java

Posted: Wed Apr 10, 2013 5:35 pm
by Exekiel
That's the textbook I'm using at Uni while it isn't silly & irreverent like a 'head first' or 'for dummies' book, it manages to impart knowledge quickly and easily (despite being MUCH more in depth than the aforementioned) and it does it without being dry and boring. ^^

While I respect copyright & IP more than the average man, the other students in my course have spread the word that if you look you can find an Illegal PDF version of Edition 8 of this book floating around in cyberspace

Also, I would love to help, but i fear I don't know near enough about Java yet, this is only my third unit and while I'd love to have a look at it (As a learning excercise if nothing else) I fear I most likely wouldn't have time :(