WeslyvanBaarsen
Posts: 4
Joined: Fri Apr 17, 2015 3:00 pm

Minecraft java api

Fri Apr 17, 2015 3:08 pm

I started coding with the java api from minecraft on the raspberry pi. although that was my plan because i ran in to some problems.
I created a program and tried to run it but it gave me some errors like:
import pi.Minecraft;
^
symbol: class Minecraft
location: package pi
TextProgramm.java:4: error: package pi.tool does not exist
import pi.tool.Text;
^
cannot find symbol

Maybe you guys can help me.What did i do wrong?

User avatar
DougieLawson
Posts: 39303
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Minecraft java api

Fri Apr 17, 2015 6:04 pm

Why are you trying to compile python code using the Java compiler?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

WeslyvanBaarsen
Posts: 4
Joined: Fri Apr 17, 2015 3:00 pm

Re: Minecraft java api

Fri Apr 17, 2015 9:53 pm

i'm not right? there is a python and java api

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Minecraft java api

Sat Apr 18, 2015 5:29 am

WeslyvanBaarsen wrote:i'm not right? there is a python and java api
No you aren't you are using the Java API. I am not sure why DougieLawson thought you were using the Python API.

WeslyvanBaarsen
Posts: 4
Joined: Fri Apr 17, 2015 3:00 pm

Re: Minecraft java api

Sat Apr 18, 2015 9:45 am

Could you explain to me where i have to put my programs to use the api lib. Because i'm really confused now.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Minecraft java api

Sat Apr 18, 2015 12:30 pm

WeslyvanBaarsen wrote:Could you explain to me where i have to put my programs to use the api lib. Because i'm really confused now.
I wish I could, but it has been a long time since I used Java and even then I was no expert. I thought a search may have found something, but I was unsuccessful. Sorry to say I don't have time to try it at the moment. Too many non-Raspberry Pi related things on at the moment.

WeslyvanBaarsen
Posts: 4
Joined: Fri Apr 17, 2015 3:00 pm

Re: Minecraft java api

Sun Apr 19, 2015 11:27 am

no problem, i figured it out. Thanks for your help. :D

Return to “Java”