Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.6.4] resizing window
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
trakos

[1.6.4] resizing window

By trakos, January 19, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

trakos    0

trakos

trakos    0

  • Tree Puncher
  • trakos
  • Members
  • 0
  • 2 posts
Posted January 19, 2014

Hi,

 

is there any good way to resize Minecraft window during startup with mod? I am doing a little util that will save all recipes, and I need to resize window to render icons in desired size.

 

What I found to work:

 

Minecraft.getMinecraft().toggleFullscreen();
ObfuscationReflectionHelper.setPrivateValue(Minecraft.class, Minecraft.getMinecraft(), 160, "tempDisplayWidth", "field_71436_X");
ObfuscationReflectionHelper.setPrivateValue(Minecraft.class, Minecraft.getMinecraft(), 160, "tempDisplayHeight", "field_71435_Y");
Minecraft.getMinecraft().toggleFullscreen();

 

But I wonder, is it possible to achieve it without toggling fullscreen (causes annoying flashing)?

 

Thanks in advance.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7581

diesieben07

diesieben07    7581

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7581
  • 54884 posts
Posted January 20, 2014

Display.setDisplayMode(new DisplayMode(width, height));

 

Just so you know: if a mod would resize my minecraft window: Instant uninstall. I have it at that size for a reason.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • mireyaruff
      my server doens`t work

      By mireyaruff · Posted 1 minute ago

      Thx, appreciate it!
    • Badnews4u
      My forge server won't load all the mods

      By Badnews4u · Posted 16 minutes ago

      Went through all the steps to make forge server hosted from my computer. I was able to successfully launch the server, but after joining the server I noticed not all my mods were working. Most notably it didn't generate a world with biomes o' plenty when I made sure to set the biomes o' plenty default world setting in the configs to true. Also gravestone mod won't give me gravestones. I made sure to update my java and everything and yes, I made sure to create the server using the forge .jar file. Any suggestions on how to fix this?
    • Lellian
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian · Posted 2 hours ago

      Well this is embarrasing. I don't know how I missed this, but it fixed everything.   Thank you very much 🤣🔫
    • Draco18s
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Draco18s · Posted 2 hours ago

      Cough.  
    • Lellian
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian · Posted 2 hours ago

      What do you mean? ExampleBlock is the small stone thing you see in the picture. It gets registered just fine (Via a DeferredRegistry), I can place it and then you see what is in the picture. This is about the hitbox/outline of the block, which I want to be smaller.
  • Topics

    • peermans
      2
      my server doens`t work

      By peermans
      Started January 7

    • Badnews4u
      0
      My forge server won't load all the mods

      By Badnews4u
      Started 16 minutes ago

    • Lellian
      4
      [SOLVED] [1.16.4] Change Block Hitbox/Outline

      By Lellian
      Started 3 hours ago

    • Chicckenprell
      0
      stoneblock 1.12.2 server crashing

      By Chicckenprell
      Started 4 hours ago

    • Veo
      2
      Unable to start LAN server detection: Can't assign requested address [Server][Modded][1.16.4]

      By Veo
      Started 8 hours ago

  • Who's Online (See full list)

    • LexManos
    • Badnews4u
    • mireyaruff
    • jbredwards
    • Choonster
    • P3pp3rF1y
    • Caffeinated Pinkie
    • Klarks
    • Qrani
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.6.4] resizing window
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community