aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-28 00:49:28 -0500
committerGitHub <noreply@github.com>2021-12-28 16:49:28 +1100
commitea3ec354ba3bb5b4ac64b8032816b8e4c407f099 (patch)
tree2a1b35a90a5b2e430ed8b09cfb0c6c8e28166039 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java
parent0aa264dd9df3205cf9641f052b6622fd36b811d5 (diff)
downloadnotenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.tar.gz
notenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.tar.bz2
notenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.zip
more code clean up (#38)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java
index 15eb7102..70ebc76f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/EnchantingSolvers.java
@@ -21,7 +21,6 @@ import net.minecraftforge.fml.common.gameevent.TickEvent;
import java.util.*;
public class EnchantingSolvers {
-
private static SolverType currentSolver = SolverType.NONE;
private enum SolverType {
@@ -31,12 +30,11 @@ public class EnchantingSolvers {
SUPERPAIRS
}
- private static final NBTTagCompound enchTag = new NBTTagCompound();
- static {
- enchTag.setTag("ench", new NBTTagList());
- }
+ private static final NBTTagCompound enchTag = new NBTTagCompound() {{
+ setTag("ench", new NBTTagList());
+ }};
- //Chronomatron
+ // Chronomatron
private static boolean addToChronomatron = false;
private static boolean chronomatronStartSeq = false;
private static final List<String> chronomatronOrder = new ArrayList<>();
@@ -44,7 +42,7 @@ public class EnchantingSolvers {
private static int lastChronomatronSize = 0;
private static long millisLastClick = 0;
- //Ultrasequencer
+ // Ultrasequencer
private static class UltrasequencerItem {
ItemStack stack;
int containerIndex;
@@ -58,7 +56,7 @@ public class EnchantingSolvers {
private static final Map<Integer, UltrasequencerItem> ultraSequencerOrder = new HashMap<>();
private static int ultrasequencerReplayIndex = 0;
- //Superpairs
+ // Superpairs
private static final Map<Integer, ItemStack> superpairStacks = new HashMap<>();
private static int lastSlotClicked = -1;
private static final HashSet<Integer> successfulMatches = new HashSet<>();
@@ -551,5 +549,4 @@ public class EnchantingSolvers {
processInventoryContents(true);
}
-
}