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

@@ -4,47 +4,48 @@ import net.minecraft.util.ResourceLocation;
import noppes.npcs.entity.EntityNPCInterface;
import org.lwjgl.opengl.GL11;
public abstract class GuiNPCInterface2 extends GuiNPCInterface
{
private ResourceLocation background = new ResourceLocation("customnpcs:textures/gui/menubg.png");
private GuiNpcMenu menu;
public abstract class GuiNPCInterface2 extends GuiNPCInterface {
private ResourceLocation background = new ResourceLocation("customnpcs:textures/gui/menubg.png");
private GuiNpcMenu menu;
public GuiNPCInterface2(EntityNPCInterface npc){
this(npc, -1);
public GuiNPCInterface2(EntityNPCInterface npc) {
this(npc, -1);
}
public GuiNPCInterface2(EntityNPCInterface npc, int activeMenu){
super(npc);
xSize = 420;
ySize = 200;
menu = new GuiNpcMenu(this, activeMenu, npc);
public GuiNPCInterface2(EntityNPCInterface npc, int activeMenu) {
super(npc);
xSize = 420;
ySize = 200;
menu = new GuiNpcMenu(this, activeMenu, npc);
}
@Override
public void initGui(){
super.initGui();
public void initGui() {
super.initGui();
menu.initGui(guiLeft, guiTop, xSize);
}
@Override
public void mouseClicked(int i, int j, int k){
if(!hasSubGui())
menu.mouseClicked(i, j, k);
public void mouseClicked(int i, int j, int k) {
if (!hasSubGui())
menu.mouseClicked(i, j, k);
super.mouseClicked(i, j, k);
}
public void delete(){
npc.delete();
public void delete() {
npc.delete();
displayGuiScreen(null);
mc.setIngameFocus();
}
public abstract void save();
@Override
public void drawScreen(int i, int j, float f)
{
if(drawDefaultBackground)
drawDefaultBackground(); //drawDefaultBackground
public void drawScreen(int i, int j, float f) {
if (drawDefaultBackground)
drawDefaultBackground(); //drawDefaultBackground
drawBackground();
menu.drawElements(getFontRenderer(), i, j, mc, f);
@@ -59,10 +60,10 @@ public abstract class GuiNPCInterface2 extends GuiNPCInterface
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.renderEngine.bindTexture(background);
drawTexturedModalRect(guiLeft, guiTop, 0, 0, 200, 220);
drawTexturedModalRect(guiLeft + xSize-230, guiTop, 26, 0, 230, 220);
drawTexturedModalRect(guiLeft + xSize - 230, guiTop, 26, 0, 230, 220);
}
protected GuiNpcMenu getMenu(){
protected GuiNpcMenu getMenu() {
return this.menu;
}
}