Jump to content

Recommended Posts

Posted

Hi,

I have create a custom crafting table (following TheGreyGhost's tutorial) and now I have the problem that my gui is not drawn. This problem generated two questions:

[*]Is it neccesary to have a TileEntity? Looking at the Workbench it is only a Block and the Container is holding the inventory for crafting and result.

[*]The drawGuiContainerForegroundLayer() and drawGuiContainerBackgroundLayer() are never executed, but GuiHandler works fine and returns a Gui (client side). Any idea why?

 

Thanks in advance,

McRaichu

 

Turorial: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe31_inventory_furnace

It doesn't work, I don't know why.

It works, I don't know why.

Posted

Matthew 7:7 "Ask and it will be given to you"  ;)

 

Block Class

  Reveal hidden contents

 

 

Gui Handler

  Reveal hidden contents

 

 

Container Class

  Reveal hidden contents

 

 

GuiContainer

  Reveal hidden contents

 

It doesn't work, I don't know why.

It works, I don't know why.

Posted

Matthew 7:7 "Ask and it will be given to you"  ;)

 

Block Class

  Reveal hidden contents

 

 

Gui Handler

  Reveal hidden contents

 

 

Container Class

  Reveal hidden contents

 

 

GuiContainer

  Reveal hidden contents

 

It doesn't work, I don't know why.

It works, I don't know why.

Posted

yep, sounds right. But for now that is not important  (the workbench does the same  :P). And i tested and it returns true and still the gui doesn't show.

It doesn't work, I don't know why.

It works, I don't know why.

Posted

yep, sounds right. But for now that is not important  (the workbench does the same  :P). And i tested and it returns true and still the gui doesn't show.

It doesn't work, I don't know why.

It works, I don't know why.

Posted

"yep, sounds right" == you are right and yes workbench doesn't ... I missed the ! in !=. crap, 3 hours wasted because of one character. thx, works like a charm now

 

It doesn't work, I don't know why.

It works, I don't know why.

Posted

"yep, sounds right" == you are right and yes workbench doesn't ... I missed the ! in !=. crap, 3 hours wasted because of one character. thx, works like a charm now

 

It doesn't work, I don't know why.

It works, I don't know why.

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...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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