Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I'm sure I'm doing something wrong but I can't find It. ps this is my first time using a gui

 

GuiScreen:

 

Reveal hidden contents

 

 

GuiHandler:

 

Reveal hidden contents

 

 

GuiHandler register:

NetworkRegistry.INSTANCE.registerGuiHandler(Instance, new GuiHandler());

 

openGui code in block class:

@Override
public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer player,int side,float hx,float hy,float hz{
player.openGui(gammacraft.Instance, 3, world, x, y, z);
return true;
}

 

I'm sure its just some stupid mistake that I can't find.

also this doesn't render anything, it just prints "render" in the console, but it doesn't do anything

The proud(ish) developer of Ancients

It's because you're not rendering anything. You're just printing it in the console.

 

It's working. You're just not doing anything.

-Mitchellbrine

 

  Quote

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

  Quote
I don't want your charity, I want your information
  On 10/18/2014 at 9:11 PM, memcallen said:

it just prints "render" in the console, but it doesn't do anything

-Mitchellbrine

 

  Quote

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

  Quote
I don't want your charity, I want your information
  • Author

Mitchellbrine, that's what it's supposed to do, should've worded it better.

 

diedieten07, what do you mean the server can't access the class?

The proud(ish) developer of Ancients

The class is only accessed by the client.

 

Put your id in, say the GuiHandler class so it's accessible on both client and server.

-Mitchellbrine

 

  Quote

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

  Quote
I don't want your charity, I want your information
  • Author

Ok I think I got it to work, it still doesn't print anything but it can pause the game when I right click. and unpause when I press esc. now I need to figure out how to render it.

The proud(ish) developer of Ancients

  • Author

I've figured out how to make it render, but how can I get the height/width of the minecraft window?

The proud(ish) developer of Ancients

xSize = #;

ySize = #;

 

drawTexturedModalRect(guiLeft, guiTop, 0, 0, this.xSize, this.ySize);

There's 10 types of people in this world; Those that understand binary and those that don't.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.