Jump to content

AAAAAAAAAAAA

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by AAAAAAAAAAAA

  1. Ive renamed the image to download.png and edited it in the class too but its still not working
  2. Ive tried to just render an image ingame but i get a Filenotfoundexception
  3. Sooo i have tried to ust show up a picture , but it get a FileNotFoundException. Why ? public class Gui extends GuiScreen { int guiheight = 200; int guiwidht = 200; public void initGui() { } public void drawScreen(int mouseX, int mouseY, float partialTicks) { drawDefaultBackground(); mc.getTextureManager().bindTexture(new ResourceLocation(Main.MOD_ID,"gui/img.png")); int offsetfromscreenLeft = (width - guiwidht) / 2; drawTexturedModalRect(offsetfromscreenLeft, 2,0,0,guiwidht,guiheight); super.drawScreen(mouseX, mouseY, partialTicks); } } and my picture is in Project/src/main/resources/asses/main/gui/img.png public static final String MOD_ID = "main";
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.