Position Integers
parent
8da1387bbc
commit
5478012e6e
|
@ -175,15 +175,11 @@ public class Litecraft extends Game
|
|||
{ return this.world; }
|
||||
|
||||
public LitecraftSave getSave()
|
||||
{
|
||||
return save;
|
||||
}
|
||||
{ return save; }
|
||||
|
||||
public void changeWorld(World world)
|
||||
{ this.world = world; }
|
||||
|
||||
public void setSave(LitecraftSave save)
|
||||
{
|
||||
this.save = save;
|
||||
}
|
||||
{ this.save = save; }
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
package com.github.halotroop.litecraft.logic;
|
||||
|
||||
public enum Gamemode {
|
||||
public enum Gamemode
|
||||
{
|
||||
SURVIVAL,CREATIVE,SPECTATOR,ARR
|
||||
}
|
||||
|
|
|
@ -32,14 +32,16 @@ public class IngameHUD extends Screen
|
|||
public void tick()
|
||||
{
|
||||
Vector4i dbg = litecraft.dbgStats;
|
||||
Vector3f position = GingerRegister.getInstance().game.data.player.getPosition();
|
||||
debugText.setText("FPS: " + dbg.x() + " UPS: " + dbg.y + " TPS: " + dbg.z);
|
||||
positionText.setText("Position " + GingerRegister.getInstance().game.data.player.getPosition().toString());
|
||||
positionText.setText("Position " + (int) position.x() + ", " + (int) position.y() + ", "+ (int) position.z());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close()
|
||||
{
|
||||
|
||||
debugText.remove();
|
||||
positionText.remove();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue