String.split () does not work, what am I doing wrong?

Ay
4

I have a small Minecraft modification, in which I now want to read the coordinates of the player.

with Minecraft.getMinecraft.thePlayer.posX I get all the coordinates. Since I only want the block coordinates, I split the string at the point:

String [] string1 = string.split (".");

However, the string array still has 0 objects afterwards, what am I doing wrong?

Za

"\." or "\\." I'm not sure right now. And why do not you bring with you

player.getLocation ();

the location?

Ay

Is that just at the point, or always?

Za

Only at the point and a few others

Ay

Thanks, it worked