I
I just thought about what I was trying to do and realized what a rookie mistake I made. I should've listened more carefully at uni.
Thanks for your quick replies guys.
can't make a static reference to a non static method
public void onRenderGameOverlay(RenderGameOverlayEvent event) {
if(!event.isCancelable() && event.getType() == ElementType.EXPERIENCE) {
Minecraft mc = Minecraft.getInstance();
if(!mc.player.isCreative()) {
int posX = MainWindow.getHeight();
}
}
How do I access it though? MainWindow.getHeight() doesn't work/exist, and eclipse doesn't suggest any similar methods. Sorry for asking stupid questions, I'm quite new to modding in minecraft.
Hello, I want to create a simple overlay like a mana bar on the screen of the player. In most of the guides people create a class that extends Gui, I tried to import it but it apparently doesn't exist anymore. Is there any alternative to this class that would do the same?