Jump to content

[1.7.10] Getting Variables From Entity Class To Display In Gui


qpwoeiruty

Recommended Posts

I have a gui that displays fine but I want to access the variables from that class. I have successfully done this I think by looking at the horse gui, but now get a crash when I try to open it.

 

I think it is due to:

 

return new GUIBlockling(player.inventory, new InventoryBlockling("Inventory", 22), null);

 

I had an error there before, but am not sure how to resolve it, sorry I am still trying to learn both java and modding.

Link to comment
Share on other sites

I have absolutely no idea what arguments your GUIBlockling constructor expects as you do no show the code. We are not clairvoyant here.

Link to comment
Share on other sites

Oh yeah, sorry:

 

public GUIBlockling(InventoryPlayer inventoryPlayer, InventoryBlockling inv, EntityBlockling entityBlockling) {

I still have no idea what you are doing with those arguments, and I'm sick of playing hide and seek, Maybe someone else can help you.

Link to comment
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.
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.



×
×
  • Create New...

Important Information

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