CurseForge · Minecraft mod
BnnWidget
Easy but powerful Minecraft GUI widget
Quick answer
Which BnnWidget release matches 1.11.2?
BnnWidget-1.11.2-1.1.1.24 targets 1.11.2. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is BnnWidget required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does BnnWidget-1.11.2-1.1.1.24 need?
BnnWidget-1.11.2-1.1.1.24 on 1.11.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add BnnWidget without breaking your instance.
Built for BnnWidget-1.11.2-1.1.1.24 on 1.11.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use BnnWidget-1.11.2-1.1.1.24. It targets 1.11.2; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside BnnWidget-1.11.2-1.1.1.24. It opens that exact file at the source.
About this project
What does BnnWidget add?

What's this mod about?
This is a Mod included in SignPicture and is a premised library group that can easily create a moving GUI.
- With easing, change of value at any time, animation framework, you can animate the GUI with very little effort.
- Due to the relative coordinate specification, it is not necessary to calculate difficult coordinates.
- It is designed to be easy to extend and you can create your own defined components.
Documentation
import javax.annotation.Nonnull;
import net.teamfruit.bnnwidget.WBase;
import net.teamfruit.bnnwidget.WEvent;
import net.teamfruit.bnnwidget.WFrame;
import net.teamfruit.bnnwidget.WPanel;
import net.teamfruit.bnnwidget.WRenderer;
import net.teamfruit.bnnwidget.motion.Easings;
import net.teamfruit.bnnwidget.position.Area;
import net.teamfruit.bnnwidget.position.Point;
import net.teamfruit.bnnwidget.position.R;
import net.teamfruit.bnnwidget.render.OpenGL;
import net.teamfruit.bnnwidget.var.V;
import net.teamfruit.bnnwidget.var.VMotion;
// your main gui extends "WFrame"
public class MyGui extends WFrame {
// init widgets in "initWidget"
@Override
protected void initWidget() {
// add your panel extends "WPanel"
add(new WPanel(new R()) {
@Override
protected void initWidget() {
// "R" is a class that relatively expresses an area.
add(new WBase(new R()) {
// "VMotion" is a constantly changing value depending on the specified animation.
VMotion m = V.pm(0);
@Override
public void draw(final @Nonnull WEvent ev, final @Nonnull Area pgp, final @Nonnull Point p, final float frame, final float opacity) {
// Let's prepare before rendering with "WRenderer.startShape()"
WRenderer.startShape();
// BnnWidget provides a GL wrapper that absorbs differences in Minecraft versions.
// The value of the "V" class is retrieved by get () every time.
OpenGL.glColor4f(0f, 0f, 0f, this.m.get());
// "WGui" has drawing methods that can be specified in detail with a float value.
draw(getGuiPosition(pgp));
}
private boolean mouseinside;
@Override
public void update(final @Nonnull WEvent ev, final @Nonnull Area pgp, final @Nonnull Point p) {
// The area of the parent widget becomes get Area of the child widget by getGuiPosition.
final Area a = getGuiPosition(pgp);
// PointInside determines if the cursor is over the widget
if (a.pointInside(p)) {
if (!this.mouseinside) {
this.mouseinside = true;
// Add animation and start it. Release the queue with stop.
this.m.stop().add(Easings.easeLinear.move(.2f, 0f)).start();
}
} else if (this.mouseinside) {
this.mouseinside = false;
this.m.stop().add(Easings.easeLinear.move(.2f, .5f)).start();
}
super.update(ev, pgp, p);
}
// It is called when the GUI is closed. If you want to add closing animation, return false and let's wait.
@Override
public boolean onCloseRequest() {
this.m.stop().add(Easings.easeLinear.move(.25f, 0f)).start();
return false;
}
// The GUI will not exit until it returns true. Let's see if the animation has ended with isFinished.
@Override
public boolean onClosing(final @Nonnull WEvent ev, final @Nonnull Area pgp, final @Nonnull Point mouse) {
return this.m.isFinished();
}
});
}
});
}
}
FAQ
I have a bug to report/suggestion to make!
If you find a bug or have an idea to improve this mod, contribute to the issue list!
I want BnnWidget in my mod pack!
Of Course!, BnnWidget, being under the MIT License. Feel free to redistribute it! My only request is to provide a link to either this thread or the mod's website.
I want to contribute!
If you feel like doing some modding, the source code of this mod is freely available here. Feel free to improve it by adding new features or fixing bugs!
Special Thanks
- to Kamesuta for creating the mod,
- to Notch et al for Minecraft,
- Lex et al for MinecraftForge,
- all contributors,
- And of course to every minecrafter who took the time to report bugs and/or leave supporting comments!
Project description from CurseForge.
Pick your setup
BnnWidget by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.11.2
1 loader build1.10.2
1 loader build1.9.4
1 loader build1.8.9
1 loader build1.7.10
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
BnnWidget versions and loaders
BnnWidget-1.11.2-1.1.1.24
BnnWidget-1.11.2-1.1.1.24-universal.jar
17 Feb 2019
BnnWidget-1.1.1.24 Universal
BnnWidget-1.1.1.24-universal.jar
17 Feb 2019
BnnWidget-1.11.2-1.1.0.11
BnnWidget-1.11.2-1.1.0.11-universal.jar
14 Oct 2018
BnnWidget-1.1.0.11 Universal
BnnWidget-1.1.0.11-universal.jar
14 Oct 2018
Looking for an older file? The official CurseForge project page is in Resources.