Update buildscript & apply automatic formatting rules

This commit is contained in:
Raven Szewczyk authored and Jason Mitchell committed 2022-06-27 10:23:18 -07:00
1 parent a7683b885d
commit f7a900e910
173 files changed
+4581 -5321

No files matched your search

+9 -15
View File
@@ -3,30 +3,24 @@ package codechicken.nei;
import static codechicken.lib.gui.GuiDraw.drawString;
import static codechicken.lib.gui.GuiDraw.drawStringC;
public class Label extends Widget
{
public class Label extends Widget {
final boolean centered;
final int colour;
public String text;
public Label(String s, boolean center, int color)
{
public Label(String s, boolean center, int color) {
text = s;
centered = center;
colour = color;
}
public Label(String s, boolean center)
{
public Label(String s, boolean center) {
this(s, center, 0xFFFFFFFF);
}
@Override
public void draw(int mousex, int mousey)
{
if(centered)
drawStringC(text, x, y, colour);
else
drawString(text, x, y, colour);
public void draw(int mousex, int mousey) {
if (centered) drawStringC(text, x, y, colour);
else drawString(text, x, y, colour);
}
}