Jump to content

Recommended Posts

Posted

Hi,

I want to create a complex tileentity  updated when a button is pressed in the gui.

But I've got some problems and I just dont understand how set the tileentitydata from the gui.

Here is my class :

I just want to send and receive the sideout value beetween gui and tileentity.

GuiTeleporter :

  Reveal hidden contents

 

TileEntityTeleporter :

  Reveal hidden contents

 

and ContainerTelepoter :

  Reveal hidden contents

Help !

Posted (edited)

here is the old code :

  Reveal hidden contents

Any idea for a syntax ?

Edited by personnedu13
Posted
  Quote
public UpdateTe() {
    integer = GuiTeleporter.getSideOut;
    blockPos = GuiTeleporter.getPos();
}

 

Expand  

What is this? It's not even valid Java, this code should not compile. You are trying to call a field and a method which do not exist.

Posted (edited)
  On 7/26/2017 at 4:37 PM, Jay Avery said:

What is this? It's not even valid Java, this code should not compile. You are trying to call a field and a method which do not exist.

Expand  

this is the old version of my code, in the actual code, I just reset the packet and this code is how the old code look like.

the actual is empty and look like this : 

  Reveal hidden contents

How should I wrote the packet if I want to send to the TileEntity the actual side ?

Edited by personnedu13
Posted

Here is my code if someone want an example :

GuiTeleporter :

  Reveal hidden contents

TileEntityTeleporter :

  Reveal hidden contents

ContainerTeleporter :

  Reveal hidden contents

ModPacketHandler :

  Reveal hidden contents

UpdateTe :

  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.