Posted June 6, 201312 yr can i change button list in Real time? like when i pressed one button,another button showed up.Can i do that?!
June 6, 201312 yr What buttons are you trying to work with? What is your code currently? BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 6, 201312 yr Author in actionPerformed: super.actionPerformed(guibutton); switch(guibutton.id) { case 1: *doing somting* buttonList.clear(); buttonList.add(new GuiButton(2, 7, 10, 20, 20, "+")); break; }
June 6, 201312 yr And what happens when you try to run this code? BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 6, 201312 yr Author ups....i want to kill eclipse with his bad tips......so yea,it actyally work's.......
June 6, 201312 yr Author heh then can you help me with last quastin:can i send info to client when it opening gui?! like is client owner of this block or no.Like IC2 does with Trade O mat.
June 6, 201312 yr I think that all you need to do is override isUsableByPlayer(EntityPlayer) in your TileEntity. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 6, 201312 yr I don't think there should need to be any packets involved. Is it not denying players access? BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 6, 201312 yr Author i dont need to deny acces,i need to send boolean varible to client,to draw a litle bit diffrent gui.....really,a litle bit.Just one diffrent button,and i dont want to create new gui for that.
June 6, 201312 yr Aah, my mistake. I'd say you pass the player to the GUI class from your proxy, and then check, in your proxy, if that player matches the player associated with the TileEntity. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
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.