I have no experience with modding at all and limited with Java but all I need to do is get the coordinates of my player and export them to a text file. I can't find a guide online and I can't find anything in Forge documentation. I've tried this:
PlayerEntity player = Minecraft.getInstance().player;
player.getX();
player.getY();
using this import net.minecraft.client.player; but I've edited both the import and the actual 'code' by using different commands like getPosition() and also importing net.minecraft.entity.player.PlayerEntity and EntityPlayer and also net.minecraft.world.entity.player but everything gives a 'cannot find symbol class' error, 'symbol variable' for Minecraft.getInstance() or it says the package doesn't exist for the import
Thanks in advance hopefully