ContainrGUI
The best GUI library on the market!
An advanced, but yet simple GUI solution.
Build fast, responsible, complex or animated menus in no time and optionally save them into your config.
Build fast, responsible, complex or animated menus in no time and optionally save them into your config.
// About
Creating a GUI can be a tedious and time-consuming task. We were aware of this issue, and so few years back, we created a powerful solution that allowed us to make GUIs of any complexity in matters of minutes so we could focus on the core application logic, saving us a lots of time and money.
ContainrGUI is time-proven. It powers many of our commissioned projects and in the past, it served as the core GUI engine in few popular Minecraft networks around the world, handling thousands of menu renders per hour.
// Links
// Features
ContainrGUI provides a set of powerful features that allow making GUI of any complexity in matter of minutes.
- Reusable Components: Create reusable components for items and containers to keep even the most complex menu systems maintainable.
- Pagination Support: Support for multi-layer pagination using containers, making it easy to handle large amounts of content.
- Animations Support: Built-in support for implementing animations for single elements, or whole containers.
- YAML Serialization: Save and load entire menu structures using Spigot YAML configuration files and allow your users to define their own easily.
- New Adventure API support: ContainrGUI allows you to take MiniMessage or Adventure API in any location supported by Minecraft. Titles, items, etc.
- Pattern-based Layout Support: Define menu layouts using patterns, allowing menus to be configured directly from config files.
- Nested Containers: Embed containers within each other to create flexible and modular menu structures. Each container has its own indexing system based on its size.
- High Performance: Optimized system enables extremely fast menu creation and updates.
// Simple Hello World
This is just a simple example. For more advanced usage, please head to our wiki.
Code (Java):
GUI gui
=
Component.
gui
(
)
. title ( "GUI Title" )
. rows ( 3 )
. prepare ( (g ) -> {
Container container = Component. staticContainer ( )
. size ( 4, 1 )
. init (c -> {
c. setElement ( 2, Component. element ( )
. click (info -> {
Player player = info. getPlayer ( ) ;
player. sendMessage ( "§7Time refreshed!" ) ;
info. getGui ( ). update (player ) ;
} )
// Compute an item on every render
. item (info -> Items. create (Material. REDSTONE_BLOCK,
"§cTime: " + DateTimeFormatter. ofPattern ( "HH:mm:ss" ). format (LocalTime. now ( ) ),
"§7Click to refresh the time" )
)
. build ( ) ) ;
} ). build ( ) ;
g. setContainer ( 1, container ) ;
} )
. build ( ) ;
gui. open (player ) ;
. title ( "GUI Title" )
. rows ( 3 )
. prepare ( (g ) -> {
Container container = Component. staticContainer ( )
. size ( 4, 1 )
. init (c -> {
c. setElement ( 2, Component. element ( )
. click (info -> {
Player player = info. getPlayer ( ) ;
player. sendMessage ( "§7Time refreshed!" ) ;
info. getGui ( ). update (player ) ;
} )
// Compute an item on every render
. item (info -> Items. create (Material. REDSTONE_BLOCK,
"§cTime: " + DateTimeFormatter. ofPattern ( "HH:mm:ss" ). format (LocalTime. now ( ) ),
"§7Click to refresh the time" )
)
. build ( ) ) ;
} ). build ( ) ;
g. setContainer ( 1, container ) ;
} )
. build ( ) ;
gui. open (player ) ;
You can add Containr to your build path using Maven or Gradle. ContainrGUI is **not a Minecraft plugin**! This means that you can use it's code directly in your project by shading it into your build path.
Gradle:
Code (Text):
repositories {
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.ZorTik:ContainrGUI:0.7-pre7'
}
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.ZorTik:ContainrGUI:0.7-pre7'
}
Code (Text):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.ZorTik</groupId>
<artifactId>ContainrGUI</artifactId>
<version>0.7-pre7</version>
</dependency>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.ZorTik</groupId>
<artifactId>ContainrGUI</artifactId>
<version>0.7-pre7</version>
</dependency>
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
ContainrGUI • The best GUI library on the market! is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 19 times (via Spigot). Download it and open it directly in the game.