Sueta
L2

L2UI

1.6.6

GUI APIU

·Plugin

L2UI

Welcome to this plugin.. :)

What is L2UI?
Well L2UI (Short for L2's User Interface) is a spigot tool for creating User Interfaces. It is an API designed around making any sort of UI you need without dealing with the nuances of inventories.

Let's face it, a majority of plugins need some sort of graphical user interface. If you are thinking yours doesn't well, you are wrong! GUI's in minecraft help by adding a great overall user experience to the player.

So, how does L2UI help you in this aspect?

Easy. I provide a pretty robust API (that I actually use in almost all of my plugins) for creating said graphical user interfaces. I can provide all the robust-ness without limiting what you can do, you still have access to all the normal inventory features.

What does it support:

  • Multiple users per inventory
  • Individual Screens per person (great for games)
  • Actions! (It will handle all events for you, and give them to you whenever you need them)
  • Animated GUI's! (that's right, you can have some pretty fancy animations if you want)
  • Auto-Pagination (this one I am especially proud of. It will auto paginate, for displaying lists of items. It will handle all the logic, all you do is tell it what slots you want it to appear in, and provide the list!)
  • Presistance (Want to create a crafting menu? sure! This will allow your UI to not accidentally ovewrite items in the UI that the player may have placed in there)
  • Callbacks (Have a lambda function you want to run after the user has done something easy! A great way to have interlinking UI's to pass data around)
  • Auto-Handles (player joins another UI? we got you covered. Player leaves? Leave it to me. Want to kick a player? Yup! I handle a lot of the player management)

Okay okay, enough about the features, lets dive into the code!
Here are some code examples. Unfortunately I haven't gotten around to doing java-docs or anything of that nature. I'll eventally add pictures and what-not.

Enjoy!

Similar projects

Plugin →