promotional bannermobile promotional banner

KeyboardAPI

KeyboardAPI
<p>A visual of what the keyboard looks like</p>

A visual of what the keyboard looks like

Description

KeyboardAPI

KeyboardAPI is a tool for developers to use to create and utilize keyboards in-game through inventory GUIs.

The keyboard is shown below. Also, the letters are changed based on whether or not caps lock is on. I realize that this is not very efficient, since you cannot see what letter is what without hovering over it.

Server Owners

This plugin does nothing on it's own. It is simply a tool for developers to utilize. As far as using the keyboard, simply click on a stained glass to use that letter, (or add a space, as in the space bar). Simply hover over the book to see what you've typed. The utilities include a caps lock button, backspace, clear text, confirm, and cancel.

Developers

I've made this as simple to use as possible: to open a new keyboard for a player, simply replace title with the title you want the keyboard inventory to have, and capsLockOn whether or not caps lock will start on.

      player.openInventory(Keyboard.getNewKeyboard(title, capsLockOn));

Once you have done that, listen to 'KeyboardClickEvent'. This is called just like InventoryClickEvents, but with more options, like

      event.getKeyboardAction();

which will return what action was used. This includes ADD_LETTER, ADD_SPACE, BACKSPACE, CANCEL, CLEAR_TEXT, CONFIRM, and TOGGLE_CAPS_LOCK

Please keep in mind, KeyboardAPI does everything as far as entering text, toggling caps lock, backspacing, and clearing the text.

If you have a question, ask in the comments below. If you have a request, submit a ticket. Found a bug? Submit a ticket.

The KeyboardAPI Team

profile avatar
  • 8
    Projects
  • 11.5K
    Downloads

More from _ForgeUser11809233View all

  • CommandMobs project image

    CommandMobs

    • 3.8K
    • Bukkit Plugins

    Allows you to bind commands to villagers

    • 3.8K
    • January 6, 2017
    • Bukkit Plugins
  • Skeleton Horse project image

    Skeleton Horse

    • 396
    • Bukkit Plugins

    Creates a custom crafting recipe for skeleton horses.

    • 396
    • April 19, 2016
    • Bukkit Plugins
  • ChatCalculator project image

    ChatCalculator

    • 1.4K
    • Bukkit Plugins

    ChatCalculator is a calculator used through chat.

    • 1.4K
    • June 12, 2015
    • Bukkit Plugins
    • +3
  • EggDrops project image

    EggDrops

    • 684
    • Bukkit Plugins

    EggDrops allow mobs to drop their respective spawn eggs on death.

    • 684
    • March 7, 2015
    • Bukkit Plugins
    • +1
  • CommandMobs project image

    CommandMobs

    • 3.8K
    • Bukkit Plugins

    Allows you to bind commands to villagers

    • 3.8K
    • January 6, 2017
    • Bukkit Plugins
  • Skeleton Horse project image

    Skeleton Horse

    • 396
    • Bukkit Plugins

    Creates a custom crafting recipe for skeleton horses.

    • 396
    • April 19, 2016
    • Bukkit Plugins
  • ChatCalculator project image

    ChatCalculator

    • 1.4K
    • Bukkit Plugins

    ChatCalculator is a calculator used through chat.

    • 1.4K
    • June 12, 2015
    • Bukkit Plugins
    • +3
  • EggDrops project image

    EggDrops

    • 684
    • Bukkit Plugins

    EggDrops allow mobs to drop their respective spawn eggs on death.

    • 684
    • March 7, 2015
    • Bukkit Plugins
    • +1