Hi, I wanted to change up the players HUD to look like the one back in the beta days of minecraft.
I managed to remove some elements using this code. But is there a way to simply change the position / X and Y coordinates of them instead of removing them?
Or is there a way to "re-add" them at a different position?
public void clear(RenderGameOverlayEvent.Pre event)
{
if (event.type == ElementType.FOOD)
{
event.setCanceled(true);
}
if (event.type == ElementType.EXPERIENCE)
{
event.setCanceled(true);
}
if (event.type == ElementType.HEALTH)
{
event.setCanceled(true);
}
if (event.type == ElementType.AIR)
{
event.setCanceled(true);
}
if (event.type == ElementType.ARMOR)
{
event.setCanceled(true);
}
}
}