aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/gui
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-05-03 21:53:00 -0400
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-05-03 21:53:00 -0400
commit70785f7afa63a1fe682f6e9f3d03b72ecc24b803 (patch)
treea61891a6711887777c3f47e5f4e75486fdbb8119 /src/main/java/kr/syeyoung/dungeonsguide/gui
parentcc03ece233023c57118e9acfeca8103b3bb587e1 (diff)
downloadSkyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.gz
Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.bz2
Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.zip
IntelliJ's Code Clean Up
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java4
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java8
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java6
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java6
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java4
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java2
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java6
7 files changed, 18 insertions, 18 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java
index c64be9db..1a53ee6a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java
@@ -9,8 +9,8 @@ import net.minecraft.client.gui.Gui;
import java.awt.*;
public class MLabelAndElement extends MPanel {
- private MLabel label;
- private MPanel element;
+ private final MLabel label;
+ private final MPanel element;
@Getter @Setter
private Color hover;
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java
index d2391cf3..f43554f2 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java
@@ -15,8 +15,8 @@ import java.util.List;
public class MNavigatingPane extends MPanel {
- private Map<String, MPanel> pages = new HashMap<String, MPanel>();
- private List<MTabButton> bookMarks = new ArrayList<MTabButton>();
+ private final Map<String, MPanel> pages = new HashMap<String, MPanel>();
+ private final List<MTabButton> bookMarks = new ArrayList<MTabButton>();
@Getter
@Setter
@@ -33,9 +33,9 @@ public class MNavigatingPane extends MPanel {
@Getter
private Color background2;
- private Stack<String> history = new Stack<String>();
+ private final Stack<String> history = new Stack<String>();
- private MButton back = new MButton();
+ private final MButton back = new MButton();
public MNavigatingPane() {
back.setText("<");
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java
index 33be5162..cd776d96 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java
@@ -13,15 +13,15 @@ import net.minecraft.client.gui.Gui;
import java.awt.*;
public class MParameter extends MPanel {
- private MLabel label;
- private MLabel data;
+ private final MLabel label;
+ private final MLabel data;
@Getter @Setter
private Color hover = Color.gray;
@Getter @Setter
private Parameter parameter;
- private DynamicEditor processorParameterEditPane;
+ private final DynamicEditor processorParameterEditPane;
public MParameter(final Parameter parameter, DynamicEditor processorParameterEditPane) {
this.processorParameterEditPane = processorParameterEditPane;
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java
index 138846b8..586ba248 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java
@@ -20,14 +20,14 @@ import java.awt.*;
public class MPortableColorEdit extends MPanel {
- private float[] hsv = new float[3];
+ private final float[] hsv = new float[3];
private float alpha = 0;
private float chromaSpeed = 0;
@Getter
private AColor color;
- private MTextField textField;
+ private final MTextField textField;
public MPortableColorEdit() {
textField = new MTextField() {
@@ -82,7 +82,7 @@ public class MPortableColorEdit extends MPanel {
GlStateManager.enableBlend();
GlStateManager.disableDepth();
GlStateManager.disableTexture2D();
- GlStateManager.disableCull();;
+ GlStateManager.disableCull();
GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
// worldrenderer.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java
index dc14264b..916a351a 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java
@@ -16,8 +16,8 @@ import java.util.Map;
public class MTabbedPane extends MPanel {
- private Map<String, MPanel> tabs = new HashMap<String, MPanel>();
- private Map<String, MTabButton> buttons = new HashMap<String, MTabButton>();
+ private final Map<String, MPanel> tabs = new HashMap<String, MPanel>();
+ private final Map<String, MTabButton> buttons = new HashMap<String, MTabButton>();
@Getter
@Setter
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java
index 160ad1d6..a6b64bb9 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java
@@ -16,7 +16,7 @@ import java.io.IOException;
@Getter
public class MTextField extends MPanel {
- private Color foreground = Color.white;
+ private final Color foreground = Color.white;
private String text = "asdasdasd";
private int cursorBlickTicker = 0;
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java
index b7684789..579d0115 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java
@@ -13,14 +13,14 @@ import java.awt.*;
import java.util.List;
public class MValue<T> extends MPanel {
@Getter
- private T data;
+ private final T data;
private ValueEditOffsetPointSet valueEditOffsetPointSet;
- private MLabel dataLab;
+ private final MLabel dataLab;
@Getter @Setter
private Color hover = Color.gray;
- private List<MPanel> addons;
+ private final List<MPanel> addons;
public MValue(final T parameter, List<MPanel> addons) {
this.addons = addons;