Solved Open command block gui

Discussion in 'Plugin Development' started by xepisolonxx, Jul 12, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    xepisolonxx

    The title pretty much explains the question I have. I have tried InventoryType and I been searching for packets but sadly couldn't find any. So I was wondering if the bukkit plugin development community could provide me with code to my question.
     
  2. Offline

    ResultStatic

    xepisolonxx i have found this.
    in BlockCommand

    Code:
     public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman, int l, float f, float f1, float f2) {
        TileEntityCommand tileentitycommand = (TileEntityCommand)world.getTileEntity(i, j, k);
     
        if (tileentitycommand != null) {
          entityhuman.a(tileentitycommand);
        }
     
        return true;
      }
    then in EntityPlayer
    Code:
    public void a(TileEntity tileentity) {
    if ((tileentity instanceof TileEntitySign)) {
    ((TileEntitySign)tileentity).a(this);
    this.playerConnection.sendPacket(new PacketPlayOutOpenSignEditor(tileentity.x, tileentity.y, tileentity.z));
    }
    }
    but thats for signs and command blocks dont extends signs so im confused. it might be handled client side
     
  3. Offline

    xepisolonxx

  4. Offline

    ResultStatic

    xepisolonxx well this is what handles when u right click a Command block. there seems to be no packet to open a command block gui so my guess is that its handled client side with the data of a sign.
     
  5. Offline

    Deleted user

Thread Status:
Not open for further replies.

Share This Page