Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. package narutoStellar.nsm.client.gui;
  2.  
  3. import org.lwjgl.opengl.GL11;
  4.  
  5. import narutoStellar.util.Reference;
  6. import net.minecraft.client.Minecraft;
  7. import net.minecraft.client.gui.GuiScreen;
  8. import net.minecraft.util.ResourceLocation;
  9.  
  10. public class GuiStellar extends GuiScreen {
  11.  
  12. int guiwidth = 720;
  13. int guiHeight = 496;
  14. //Minecraft mc = Minecraft.getMinecraft();
  15.  
  16. @Override
  17. public void drawScreen(int x, int y, float ticks) {
  18. int guiX =(width - guiwidth) / 2;
  19. int guiY =(height - guiHeight) / 2;
  20. GL11.glColor4f(1, 1, 1, 1);
  21. drawDefaultBackground();
  22. mc.renderEngine.bindTexture(new ResourceLocation(Reference.MOD_ID, "textures/gui/Naruto-Stellar-GUI.png"));
  23. drawTexturedModalRect(guiX, guiY, 10, 50, guiwidth, guiHeight);
  24. super.drawScreen(x, y, ticks);
  25.  
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement