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

@@ -1,22 +1,22 @@
package noppes.npcs.client.gui.global;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import kamkeel.npcs.network.PacketClient;
import kamkeel.npcs.network.packets.request.magic.*;
import noppes.npcs.client.gui.SubGuiMagicCycle;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.nbt.NBTTagCompound;
import noppes.npcs.client.gui.SubGuiMagic;
import noppes.npcs.client.gui.SubGuiMagicCycle;
import noppes.npcs.client.gui.SubGuiMagicCycleViewer;
import noppes.npcs.client.gui.util.*;
import noppes.npcs.constants.EnumScrollData;
import noppes.npcs.controllers.data.Magic;
import noppes.npcs.controllers.data.MagicCycle;
import noppes.npcs.entity.EntityNPCInterface;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.nbt.NBTTagCompound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Vector;
import static noppes.npcs.client.gui.player.inventory.GuiCNPCInventory.specialIcons;
@@ -201,45 +201,45 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
}
public void updateButtons(){
public void updateButtons() {
// Magic Buttons
GuiButton button = getButton(2);
if(button != null){
if (button != null) {
button.enabled = selectedMagic != null;
}
if(viewByCycle){
if (viewByCycle) {
button = getButton(1);
if(button != null){
if (button != null) {
button.enabled = selectedMagic != null;
}
}
button = getButton(5);
if(button != null){
if (button != null) {
button.enabled = selectedCycle != null;
}
button = getButton(6);
if(button != null){
if (button != null) {
button.enabled = selectedCycle != null;
}
button = getButton(20);
if(button != null){
if (button != null) {
button.enabled = selectedCycle != null;
}
if(getLabel(201) != null){
if(selectedCycle != null){
if (getLabel(201) != null) {
if (selectedCycle != null) {
getLabel(201).label = selectedCycle.id + "";
} else {
getLabel(201).label = "";
}
}
if(getLabel(101) != null){
if(selectedMagic != null){
if (getLabel(101) != null) {
if (selectedMagic != null) {
getLabel(101).label = selectedMagic.id + "";
} else {
getLabel(101).label = "";
@@ -248,7 +248,8 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
}
@Override
public void save() {}
public void save() {
}
@Override
public void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {
@@ -366,10 +367,10 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
currentMagicList.clear();
}
if(rightScroll != null)
if (rightScroll != null)
rightScroll.selected = -1;
if(leftScroll != null)
if (leftScroll != null)
leftScroll.selected = -1;
initGui();
@@ -456,7 +457,8 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
}
@Override
public void customScrollDoubleClicked(String selection, GuiCustomScroll scroll) {}
public void customScrollDoubleClicked(String selection, GuiCustomScroll scroll) {
}
@Override
public void subGuiClosed(SubGuiInterface subgui) {
@@ -512,7 +514,8 @@ public class GuiNpcManageMagic extends GuiNPCInterface2 implements ISubGuiListen
}
@Override
public void setSelected(String selected) {}
public void setSelected(String selected) {
}
@Override
public void setGuiData(NBTTagCompound compound) {