Proper Reformating

This commit is contained in:
Kam committed 2025-03-13 17:14:45 -04:00
1 parent ce75880aba
commit 180d257024
1179 files changed
+59847 -61583

No files matched your search

@@ -7,27 +7,30 @@ import net.minecraft.util.StatCollector;
import noppes.npcs.client.CustomNpcResourceListener;
public class GuiNpcLabel {
public String label;
public int x,y,color;
public boolean enabled = true;
public int id;
public String label;
public int x, y, color;
public boolean enabled = true;
public int id;
public GuiNpcLabel(int id, Object label, int x, int y, int color){
this.id = id;
this.label = StatCollector.translateToLocal(label.toString());
this.x = x;
this.y = y;
this.color = color;
}
public GuiNpcLabel(int id, Object label, int x, int y){
this(id, label, x, y, CustomNpcResourceListener.DefaultTextColor);
}
public void drawLabel(GuiScreen gui, FontRenderer fontRenderer) {
if(enabled)
fontRenderer.drawString(label, x, y, color);
}
public void center(int width) {
int size = Minecraft.getMinecraft().fontRenderer.getStringWidth(label);
x += (width - size) / 2;
}
public GuiNpcLabel(int id, Object label, int x, int y, int color) {
this.id = id;
this.label = StatCollector.translateToLocal(label.toString());
this.x = x;
this.y = y;
this.color = color;
}
public GuiNpcLabel(int id, Object label, int x, int y) {
this(id, label, x, y, CustomNpcResourceListener.DefaultTextColor);
}
public void drawLabel(GuiScreen gui, FontRenderer fontRenderer) {
if (enabled)
fontRenderer.drawString(label, x, y, color);
}
public void center(int width) {
int size = Minecraft.getMinecraft().fontRenderer.getStringWidth(label);
x += (width - size) / 2;
}
}