Jump to content

Arcadius

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Arcadius's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Welp, I have no idea how I accomplished this. I think the image sort of speaks for itself, but it's still baffling. The image size is the same as the dimensions I specified in the Gui class, but it still looks so oddly scaled. What would be the best solution? [/img] public class GuiInscriptionTable extends GuiContainer { private ResourceLocation texture = new ResourceLocation(RunicWeapons.MODID + ":" + "textures/gui/InscriptionTableGUI.png" ); public GuiInscriptionTable(InventoryPlayer invPlayer, World world, int x, int y, int z) { super(new ContainerInscriptionTable(invPlayer, world, x, y, z)); this.xSize = 176; this.ySize = 166; } public void onGuiClosed(){ super.onGuiClosed(); } protected void drawGuiContainerForegroundLayer(int i, int j) { this.fontRendererObj.drawString(StatCollector.translateToLocal("Inscription Table"), 75, 5, 0x000000); } @Override protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) { GL11.glColor4f(1F, 1F, 1F, 1F); this.mc.renderEngine.bindTexture(texture); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, xSize, ySize); }}
  2. Not sure if it would crash though. Not sure myself, but thanks for catching that! EDIT: OH MY GOD THAT FIXED IT. Thank you!
  3. [Reposting because I thought this was not up to standards, but I think I was wrong] Hi there! First time modder but I'm experienced with Java through my time in school. I've been playing around with various modding tutorials over the past few days, but I recently got stuck when I tried to jump into creating a custom block model. I may have been a little too eager, and I should probably go make sure I'm versed in the basics. But Neale Gaming's tutorial's been fairly helpful. Anyways! I got this error in the setRotation code of my custom block's .java file error I must be missing something blatantly obvious here, but hopefully you guys might see something that I missed. Thanks!
×
×
  • Create New...

Important Information

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