Jump to content

Recommended Posts

Posted

Hey guys, I am trying to create a GUI that opens when I click on my custom entity. This is a basic GUI, which will show some information about the entity. This is what I've done so far:

 

Gui Class:

 

  Reveal hidden contents

 

 

How I am trying to open this guiscreen:

 

  Reveal hidden contents

 

 

Gui Handler:

 

  Reveal hidden contents

 

 

Am I missing some thing? Btw, any idea how can I have access to the entity?

Posted

Found my mistake. I was trying to check the id after checking the tileentity at position (x, y, z) which is obviously null. Ops! :x

 

However I am having trouble with the getValues from the entity class. For some reason the values that I'm getting is from the server side, which are not updated (different values compared to the client). Only the getHealth() and getSpeed() are correct. Note: I'm using DataWatcher in one of these variables and it doesn't work either.

 

My common proxy:

 

  Reveal hidden contents

 

 

My client proxy:

 

  Reveal hidden contents

 

 

My main class:

 

  Reveal hidden contents

 

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.