Jump to content
  • Home
  • Files
  • Docs
  • Merch
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.7.10]Changing minecraft window rendering
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Taji34

[1.7.10]Changing minecraft window rendering

By Taji34, March 24, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Taji34    5

Taji34

Taji34    5

  • Creeper Killer
  • Taji34
  • Forge Modder
  • 5
  • 147 posts
Posted March 24, 2015

I am creating a mod that would give users more functionality with how the minecraft window is handled (Borderless Window, Default resolution, etc.) which would require me to change some base minecraft code, could someone point me toward a tutorial on how to do this with forge?

  • Quote

Share this post


Link to post
Share on other sites

starwarsmace    18

starwarsmace

starwarsmace    18

  • Diamond Finder
  • starwarsmace
  • Members
  • 18
  • 333 posts
Posted March 24, 2015

I am creating a mod that would give users more functionality with how the minecraft window is handled (Borderless Window, Default resolution, etc.) which would require me to change some base minecraft code, could someone point me toward a tutorial on how to do this with forge?

You cant edit base files.

  • Quote

Share this post


Link to post
Share on other sites

Ernio    598

Ernio

Ernio    598

  • Reality Controller
  • Ernio
  • Forge Modder
  • 598
  • 2638 posts
Posted March 24, 2015

Well ofc. you can (ASM in runtime, which is NOT Forge), BUT stuff like "Borderless Window" - This is going like VERY deep into most basic classes. And "Default resolution" - what is that? Window can be resized, GUIs have scaling? I mean - what do you want more?

 

Also - there alredy is fullscreen mode.

  • Quote

Share this post


Link to post
Share on other sites

starwarsmace    18

starwarsmace

starwarsmace    18

  • Diamond Finder
  • starwarsmace
  • Members
  • 18
  • 333 posts
Posted March 24, 2015

Well ofc. you can (ASM in runtime, which is NOT Forge), BUT stuff like "Borderless Window" - This is going like VERY deep into most basic classes. And "Default resolution" - what is that? Window can be resized, GUIs have scaling? I mean - what do you want more?

 

Also - there alredy is fullscreen mode.

Sorry. Let me rephrase my previous statement. It is highly recommend not to edit base files. But I agree with the fact that changing the windows into border less would be hard and if you do do it would probably be a very hacky method and not clean at all.

  • Quote

Share this post


Link to post
Share on other sites

Taji34    5

Taji34

Taji34    5

  • Creeper Killer
  • Taji34
  • Forge Modder
  • 5
  • 147 posts
Posted March 25, 2015

Well ofc. you can (ASM in runtime, which is NOT Forge), BUT stuff like "Borderless Window" - This is going like VERY deep into most basic classes. And "Default resolution" - what is that? Window can be resized, GUIs have scaling? I mean - what do you want more?

 

Also - there alredy is fullscreen mode.

The stuff I need to add to is in minecraft.java, which I'm assuming is off limits as far as changes go, and yes, I do want more. I want to be able to play "Fullscreen" and be able to alt-tab away, or go to a second monitor and not have minecraft freak out.

 

-snip-

Sorry. Let me rephrase my previous statement. It is highly recommend not to edit base files. But I agree with the fact that changing the windows into border less would be hard and if you do do it would probably be a very hacky method and not clean at all.

Well it's actually relatively simple. Just add System.setProperty("org.lwjgl.opengl.Window.undecorated","true"); and change the window to not be re-sizable (the re-sizable part is mainly just for windows, as from research it seems the first part does the trick on Mac and Linux, while windows leaves a border since it is still re-sizable). The default resolution Default Window Size (See explaination at bottom) is the solution to the making the window not re-sizable. I would also, in this mode, need to center the minecraft window to the center of the screen, rather than the upper right corner. Then of course I would add menu options or a config file to change all of these things.

 

I would not be removing anything from the file or modifying existing code, just adding two or three lines to the minecraft.java file, and the rest would be through forge. Is this not advisable? If not, thank you for the help.

 

EDIT: Explaination: I realized that Defaut Resolution was not the best wording. I would not be changing how minecraft rendered anything, what I meant to get across was a default window size, so that you could specify how big you wanted the window to be, since it would not be re-sizable. This is so I can make the window fill my screen if I want, or I can make it a 800x500 window on my screen if I want. Hopefully that makes sense.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6674

diesieben07

diesieben07    6674

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6674
  • 45649 posts
Posted March 25, 2015

Uh, you can set the Game resolution in the launcher.

  • Quote

Share this post


Link to post
Share on other sites

Taji34    5

Taji34

Taji34    5

  • Creeper Killer
  • Taji34
  • Forge Modder
  • 5
  • 147 posts
Posted March 25, 2015

Uh, you can set the Game resolution in the launcher.

 

Can you? I don't use the vanilla launcher, so I had no idea.

  • 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 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • BattleDash
      Get all players connected to a bungee server

      By BattleDash · Posted 41 minutes ago

      Hello all, I'm trying to make a mod that can tell you all the players on a bungee server you're connected to, I've never worked with Forge before and this API is very abstract to me compared to plugin development which is what I normally do. Does anyone know how I would go about getting a list of Player Entities of every player on the network you're connected to?
    • Draco18s
      Trouble getting contents of a Chest

      By Draco18s · Posted 1 hour ago

      It isn't merged, so it won't work yet.
    • saxon564
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By saxon564 · Posted 2 hours ago

      Does anyone else have any thoughts as to what might be causing this issue?
    • diesieben07
      [1.12.2] How can I close GUI in Forge?

      By diesieben07 · Posted 2 hours ago

      You cannot call Minecraft methods from a separate thread. You need to wait a tick using ClientTickEvent.
    • bismuth210
      [1.12.2] Killing fireworks in unloaded chunks

      By bismuth210 · Posted 2 hours ago

      I'm creating a custom gamemode using forge in which players get teleported around regularly. I've run into a problem when I do the following:   I spawn a firework rocket near a player I teleport the player to a different location I wait a couple of seconds (or minutes) I teleport the player back to the same location as in step 1. Doing this will show the firework spawned in step 1 in step 4, despite significant time having passed in 3. This video shows what I mean:   I suspect the reason for why this happens is because once I teleport the player somewhere else, the chunk with the firework is no longer loaded and doesn't get updated.   Is there a simple way for me to simply "get rid" of all active fireworks shortly before teleporting players so that this doesn't occur? Or do I really have to forcibly keep all chunks loaded? To be more clear: I don't want to disable fireworks all together, but I don't want remnants of old fireworks showing up when I teleport players. "Killing" all firework rockets when I teleport a player would work fine, but I don't know if/how I can do that.   I've tried using /kill @e[type=!player] But that doesn't work for firework rockets apparently.
  • Topics

    • BattleDash
      0
      Get all players connected to a bungee server

      By BattleDash
      Started 41 minutes ago

    • MattNL
      5
      Trouble getting contents of a Chest

      By MattNL
      Started 12 hours ago

    • saxon564
      12
      [1.14.4] [UNSOLVED] Server Thread Freezes After Entity Explodes

      By saxon564
      Started Friday at 05:11 AM

    • Filip4223
      5
      [1.12.2] How can I close GUI in Forge?

      By Filip4223
      Started 3 hours ago

    • bismuth210
      0
      [1.12.2] Killing fireworks in unloaded chunks

      By bismuth210
      Started 2 hours ago

  • Who's Online (See full list)

    • Yanny7
    • BattleDash
    • DragonITA
    • Epicmoofish
    • vaartis
    • Choonster
    • no namezzzz
    • imacatlolol
    • Cerandior
    • M1ntcraft3r
    • AntonBespoiasov
    • loordgek
    • ROMVoid
    • diesieben07
    • Legenes
    • Draco18s
    • TheMikeste1
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10]Changing minecraft window rendering
  • Theme
  • Contact Us
  • Discord

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