Jump to content

Recommended Posts

Posted

Im trying to opena GuiScreen only when several values in my IEEP's are not set or empty. I register my IEEPs as usual in EntityConstructing event and then check using playerTickEvent wether the gui should open or not. Unfortunately thegui opens every time (But the player always is the same, i logged in to my MC-Account). Also i don't think that this is beeing caused by any saving errors in my IEEP's...

 

This is my Code:

 

The loadFromNBT & saveToNBT methods:

 

  Reveal hidden contents

 

 

The two events in my CommonHandler:

 

  Reveal hidden contents

 

 

Thanks in Advice & Happy New Year!!

Posted

What's the console output from your System.out.println statements? Are those values still empty / null? I assume you set those values from the GUI, but that's client-side only, so are you sending packets to the server to set the actual data there?

 

Btw, you don't need to pass the block position coordinates to open the GUI if you are not going to be using them for anything.

Posted

Yea, im sending a setPropertiesPackage from the Gui. This is my Packet:

 

  Reveal hidden contents

 

 

And this is the handler:

 

  Reveal hidden contents

 

Posted

Short update - the handler now looks like this:

 

  Reveal hidden contents

 

 

I thougt - setting the name of the props directly from the player would be better than just setting them for an instance ^_^

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.