credits to scuCode:/** * Writes an interface onto the chatbox. * @param frame The interface to write on. * @return The action sender instance, for chaining. */ public ActionSender sendFrame164(int frame) { PacketBuilder bldr = new PacketBuilder(164); bldr.putLEShort(frame); player.getSession().write(bldr.toPacket()); player.getInterfaceState().interfaceOpened(frame); return this; }