Jump to content

Recommended Posts

Posted

So I created a custom chest gui and it works, but the double chest uses the smaller chest part

 

does anyone know any fixes

picture

 

  Reveal hidden contents

 

 

code

block class

 

  Reveal hidden contents

 

 

client proxy

 

  Reveal hidden contents

 

 

chest gui class

 

  Reveal hidden contents

 

 

gui handler class

 

  Reveal hidden contents

 

 

main mod class

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

Posted

short short1 = 222;
        int i = short1 - 108;
        this.inventoryRows = par2IInventory.getSizeInventory() / 9;
        this.ySize = i + this.inventoryRows * 18;

Hah useless magic numbers...always fun to have those :P

What did you put in getSizeInventory() for TileEntityUnderworldChest ?

Posted

tileentity underworld chest

 

  Reveal hidden contents

 

 

container underworld chest

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

Posted

Cough, look at vanilla chests, cough.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

I used the getInventory method and it still didn't work, Also I tried to look at the vanilla chests but I couldn't find anything

 

guihandler code

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

Posted

Oh your right

 

gui handler

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

Posted

new guihandler code

 

  Reveal hidden contents

 

 

new block class

 

  Reveal hidden contents

 

 

error log

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

Posted

Thanks to diesieben07 my custom chest is now working here is my guihandler code

 

 

  Reveal hidden contents

 

if (You.likescoding == false){
      You.goaway;
}

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.