diff --git a/spotless.eclipseformat.xml b/spotless.eclipseformat.xml
index b851fb145..12f80cc79 100644
--- a/spotless.eclipseformat.xml
+++ b/spotless.eclipseformat.xml
@@ -4,7 +4,7 @@
-
+
@@ -59,7 +59,7 @@
-
+
@@ -102,7 +102,7 @@
-
+
@@ -110,7 +110,7 @@
-
+
@@ -198,7 +198,7 @@
-
+
@@ -226,7 +226,7 @@
-
+
@@ -240,7 +240,7 @@
-
+
diff --git a/src/main/java/com/cleanroommc/groovyscript/GroovyScript.java b/src/main/java/com/cleanroommc/groovyscript/GroovyScript.java
index 268df70b9..a67378725 100644
--- a/src/main/java/com/cleanroommc/groovyscript/GroovyScript.java
+++ b/src/main/java/com/cleanroommc/groovyscript/GroovyScript.java
@@ -115,7 +115,9 @@ public void onConstruction(FMLConstructionEvent event) {
ReloadableRegistryManager.init();
try {
sandbox = new GroovyScriptSandbox(scriptPath, FileUtil.makeFile(FileUtil.getMinecraftHome(), "cache", "groovy"));
- } catch (MalformedURLException e) {
+ } catch (
+ MalformedURLException e
+ ) {
throw new IllegalStateException("Error initializing sandbox!");
}
ModSupport.INSTANCE.setup(event.getASMHarvestedData());
@@ -156,7 +158,9 @@ public static void initializeRunConfig(File minecraftHome) {
}
try {
scriptPath = scriptPath.getCanonicalFile();
- } catch (IOException e) {
+ } catch (
+ IOException e
+ ) {
GroovyLog.get().error("Failed to canonicalize groovy script path '" + scriptPath + "'!");
GroovyLog.get().exception(e);
}
@@ -213,49 +217,67 @@ public void onServerLoad(FMLServerStartingEvent event) {
@SubscribeEvent
public static void onInput(InputEvent.KeyInputEvent event) {
long time = Minecraft.getSystemTime();
- if (Minecraft.getMinecraft().isIntegratedServerRunning() && reloadKey
- .isPressed() && time - timeSinceLastUse >= 1000 && Minecraft.getMinecraft().player.getPermissionLevel() >= 4) {
+ if (
+ Minecraft.getMinecraft().isIntegratedServerRunning() && reloadKey
+ .isPressed() && time - timeSinceLastUse >= 1000 && Minecraft.getMinecraft().player.getPermissionLevel() >= 4
+ ) {
NetworkHandler.sendToServer(new CReload());
timeSinceLastUse = time;
}
}
@NotNull
- public static String getScriptPath() { return getScriptFile().getPath(); }
+ public static String getScriptPath() {
+ return getScriptFile().getPath();
+ }
@NotNull
public static File getMinecraftHome() {
- if (minecraftHome == null) { throw new IllegalStateException("GroovyScript is not yet loaded!"); }
+ if (minecraftHome == null) {
+ throw new IllegalStateException("GroovyScript is not yet loaded!");
+ }
return minecraftHome;
}
@NotNull
public static File getScriptFile() {
- if (scriptPath == null) { throw new IllegalStateException("GroovyScript is not yet loaded!"); }
+ if (scriptPath == null) {
+ throw new IllegalStateException("GroovyScript is not yet loaded!");
+ }
return scriptPath;
}
@NotNull
public static File getResourcesFile() {
- if (resourcesFile == null) { throw new IllegalStateException("GroovyScript is not yet loaded!"); }
+ if (resourcesFile == null) {
+ throw new IllegalStateException("GroovyScript is not yet loaded!");
+ }
return resourcesFile;
}
@NotNull
public static File getRunConfigFile() {
- if (runConfigFile == null) { throw new IllegalStateException("GroovyScript is not yet loaded!"); }
+ if (runConfigFile == null) {
+ throw new IllegalStateException("GroovyScript is not yet loaded!");
+ }
return runConfigFile;
}
@NotNull
public static GroovyScriptSandbox getSandbox() {
- if (sandbox == null) { throw new IllegalStateException("GroovyScript is not yet loaded!"); }
+ if (sandbox == null) {
+ throw new IllegalStateException("GroovyScript is not yet loaded!");
+ }
return sandbox;
}
- public static boolean isSandboxLoaded() { return sandbox != null; }
+ public static boolean isSandboxLoaded() {
+ return sandbox != null;
+ }
- public static RunConfig getRunConfig() { return runConfig; }
+ public static RunConfig getRunConfig() {
+ return runConfig;
+ }
@ApiStatus.Internal
public static void reloadRunConfig(boolean init) {
@@ -281,7 +303,9 @@ private static RunConfig createRunConfig(JsonObject json) {
main.getParentFile().mkdirs();
Files.write(main.toPath(), "\nprintln('Hello World!')\n".getBytes(StandardCharsets.UTF_8),
StandardOpenOption.CREATE, StandardOpenOption.WRITE);
- } catch (IOException e) {
+ } catch (
+ IOException e
+ ) {
throw new RuntimeException(e);
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/GroovyPlugin.java b/src/main/java/com/cleanroommc/groovyscript/api/GroovyPlugin.java
index 77538dfff..b1b294afa 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/GroovyPlugin.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/GroovyPlugin.java
@@ -35,5 +35,7 @@ public interface GroovyPlugin extends IGroovyContainer {
* This method exist because of the extended interface. It has no use in this interface.
*/
@Override @ApiStatus.NonExtendable
- default boolean isLoaded() { return true; }
+ default boolean isLoaded() {
+ return true;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/IGameObjectParser.java b/src/main/java/com/cleanroommc/groovyscript/api/IGameObjectParser.java
index c3a437efd..3ce3ed013 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/IGameObjectParser.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/IGameObjectParser.java
@@ -47,7 +47,9 @@ static IGameObjectParser wrapStringGetter(Function getter) {
static IGameObjectParser wrapStringGetter(Function getter, boolean isUpperCase) {
return (s, args) -> {
- if (args.length > 0) { return Result.error("extra arguments are not allowed"); }
+ if (args.length > 0) {
+ return Result.error("extra arguments are not allowed");
+ }
T t = getter.apply(isUpperCase ? s.toUpperCase(Locale.ROOT) : s);
return t == null ? Result.error() : Result.some(t);
};
@@ -60,7 +62,9 @@ static IGameObjectParser wrapStringGetter(Function getter,
static IGameObjectParser wrapStringGetter(Function getter, Function trueTypeFunction,
boolean isUpperCase) {
return (s, args) -> {
- if (args.length > 0) { return Result.error("extra arguments are not allowed"); }
+ if (args.length > 0) {
+ return Result.error("extra arguments are not allowed");
+ }
V v = getter.apply(isUpperCase ? s.toUpperCase(Locale.ROOT) : s);
return v == null ? Result.error() : Result.some(trueTypeFunction.apply(v));
};
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/IGroovyContainer.java b/src/main/java/com/cleanroommc/groovyscript/api/IGroovyContainer.java
index 04ea10284..92ed3e736 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/IGroovyContainer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/IGroovyContainer.java
@@ -49,7 +49,9 @@ public interface IGroovyContainer {
* @return aliases
*/
@NotNull
- default Collection getAliases() { return Collections.singletonList(getModId()); }
+ default Collection getAliases() {
+ return Collections.singletonList(getModId());
+ }
/**
* Called before scripts are executed for the first time. Called right before
@@ -71,7 +73,9 @@ public interface IGroovyContainer {
* @see Priority
*/
@NotNull
- default Priority getOverridePriority() { return Priority.NONE; }
+ default Priority getOverridePriority() {
+ return Priority.NONE;
+ }
enum Priority {
/**
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/IIngredient.java b/src/main/java/com/cleanroommc/groovyscript/api/IIngredient.java
index a2fda84dc..19a22d6c3 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/IIngredient.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/IIngredient.java
@@ -23,7 +23,9 @@ public interface IIngredient extends IResourceStack, Predicate {
ItemStack[] getMatchingStacks();
- default boolean isEmpty() { return getAmount() <= 0 || getMatchingStacks().length == 0; }
+ default boolean isEmpty() {
+ return getAmount() <= 0 || getMatchingStacks().length == 0;
+ }
default ItemStack applyTransform(ItemStack matchedInput) {
return ForgeHooks.getContainerItem(matchedInput);
@@ -61,17 +63,20 @@ default IIngredient withAmount(int amount) {
/**
* An empty ingredient with stack size 0, that matches empty item stacks
*/
- IIngredient EMPTY = new IIngredient()
- {
+ IIngredient EMPTY = new IIngredient() {
@Override
- public int getAmount() { return 0; }
+ public int getAmount() {
+ return 0;
+ }
@Override
public void setAmount(int amount) {}
@Override
- public boolean isEmpty() { return true; }
+ public boolean isEmpty() {
+ return true;
+ }
@Override
public IIngredient exactCopy() {
@@ -84,7 +89,9 @@ public Ingredient toMcIngredient() {
}
@Override
- public ItemStack[] getMatchingStacks() { return new ItemStack[]{ItemStack.EMPTY}; }
+ public ItemStack[] getMatchingStacks() {
+ return new ItemStack[]{ItemStack.EMPTY};
+ }
@Override
public boolean test(ItemStack stack) {
@@ -95,8 +102,7 @@ public boolean test(ItemStack stack) {
/**
* An ingredient with stack size 1, that matches any item stack
*/
- IIngredient ANY = new IIngredient()
- {
+ IIngredient ANY = new IIngredient() {
@Override
public IIngredient exactCopy() {
@@ -105,8 +111,7 @@ public IIngredient exactCopy() {
@Override
public Ingredient toMcIngredient() {
- return new Ingredient()
- {
+ return new Ingredient() {
@Override
public boolean apply(@Nullable ItemStack p_apply_1_) {
@@ -116,13 +121,19 @@ public boolean apply(@Nullable ItemStack p_apply_1_) {
}
@Override
- public ItemStack[] getMatchingStacks() { return new ItemStack[0]; }
+ public ItemStack[] getMatchingStacks() {
+ return new ItemStack[0];
+ }
@Override
- public boolean isEmpty() { return false; }
+ public boolean isEmpty() {
+ return false;
+ }
@Override
- public int getAmount() { return 1; }
+ public int getAmount() {
+ return 1;
+ }
@Override
public void setAmount(int amount) {}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/INamed.java b/src/main/java/com/cleanroommc/groovyscript/api/INamed.java
index de3e0a8a3..56007cbc7 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/INamed.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/INamed.java
@@ -8,11 +8,15 @@ public interface INamed {
default String getName() {
Collection aliases = getAliases();
- if (aliases.isEmpty()) { return "EmptyName"; }
+ if (aliases.isEmpty()) {
+ return "EmptyName";
+ }
return aliases.iterator().next();
}
@GroovyBlacklist
- default boolean isEnabled() { return true; }
+ default boolean isEnabled() {
+ return true;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/IObjectParser.java b/src/main/java/com/cleanroommc/groovyscript/api/IObjectParser.java
index 2db7e36ac..4cf29ddfb 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/IObjectParser.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/IObjectParser.java
@@ -59,7 +59,9 @@ static IObjectParser wrapStringGetter(Function getter) {
static IObjectParser wrapStringGetter(Function getter, boolean isUpperCase) {
return (s, args) -> {
- if (args.length > 0) { return Result.error("extra arguments are not allowed"); }
+ if (args.length > 0) {
+ return Result.error("extra arguments are not allowed");
+ }
T t = getter.apply(isUpperCase ? s.toUpperCase(Locale.ROOT) : s);
return t == null ? Result.error() : Result.some(t);
};
@@ -72,7 +74,9 @@ static IObjectParser wrapStringGetter(Function getter, Func
static IObjectParser wrapStringGetter(Function getter, Function trueTypeFunction,
boolean isUpperCase) {
return (s, args) -> {
- if (args.length > 0) { return Result.error("extra arguments are not allowed"); }
+ if (args.length > 0) {
+ return Result.error("extra arguments are not allowed");
+ }
V v = getter.apply(isUpperCase ? s.toUpperCase(Locale.ROOT) : s);
return v == null ? Result.error() : Result.some(trueTypeFunction.apply(v));
};
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/IRegistrar.java b/src/main/java/com/cleanroommc/groovyscript/api/IRegistrar.java
index 40dba81a9..0765c9c6c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/IRegistrar.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/IRegistrar.java
@@ -39,13 +39,17 @@ default void addFieldsOf(Object object) {
}
for (Field field : clazz.getDeclaredFields()) {
boolean isStatic = Modifier.isStatic(field.getModifiers());
- if (!field.isAnnotationPresent(GroovyBlacklist.class) && INamed.class.isAssignableFrom(field.getType()) && (!staticOnly || isStatic) && field.isAccessible()) {
+ if (
+ !field.isAnnotationPresent(GroovyBlacklist.class) && INamed.class.isAssignableFrom(field.getType()) && (!staticOnly || isStatic) && field.isAccessible()
+ ) {
try {
Object o = field.get(isStatic ? null : object);
if (o != null) {
addRegistry((INamed) o);
}
- } catch (IllegalAccessException e) {
+ } catch (
+ IllegalAccessException e
+ ) {
GroovyLog.get().errorMC("Failed to register {} as virtualized registry", field.getName());
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/Result.java b/src/main/java/com/cleanroommc/groovyscript/api/Result.java
index 6c749113c..5f9fdcaf4 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/Result.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/Result.java
@@ -50,10 +50,14 @@ public boolean hasError() {
}
@Override
- public @Nullable String getError() { return null; }
+ public @Nullable String getError() {
+ return null;
+ }
@Override
- public @NotNull T getValue() { return this.value; }
+ public @NotNull T getValue() {
+ return this.value;
+ }
}
class Error implements Result {
@@ -70,7 +74,9 @@ public boolean hasError() {
}
@Override
- public @Nullable String getError() { return this.error; }
+ public @Nullable String getError() {
+ return this.error;
+ }
@Override
public @NotNull T getValue() {
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/Comp.java b/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/Comp.java
index 966673d8d..71d6e508c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/Comp.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/Comp.java
@@ -78,9 +78,13 @@ enum Type {
this.key = baseLocalizationPath + key;
}
- public String getSymbol() { return symbol; }
+ public String getSymbol() {
+ return symbol;
+ }
- public String getKey() { return key; }
+ public String getKey() {
+ return key;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/RegistryDescription.java b/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/RegistryDescription.java
index 3177a2239..789c32555 100644
--- a/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/RegistryDescription.java
+++ b/src/main/java/com/cleanroommc/groovyscript/api/documentation/annotations/RegistryDescription.java
@@ -151,7 +151,9 @@ enum Reloadability {
*/
DISABLED;
- public boolean isReloadable() { return this != DISABLED; }
+ public boolean isReloadable() {
+ return this != DISABLED;
+ }
public boolean hasFlaws() {
return this == FLAWED;
diff --git a/src/main/java/com/cleanroommc/groovyscript/command/CustomClickAction.java b/src/main/java/com/cleanroommc/groovyscript/command/CustomClickAction.java
index 6dfdd02e4..5f889b88e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/command/CustomClickAction.java
+++ b/src/main/java/com/cleanroommc/groovyscript/command/CustomClickAction.java
@@ -21,7 +21,9 @@ public static ClickEvent makeCopyEvent(String value) {
}
public static void registerAction(String name, Consumer action) {
- if (ACTIONS.containsKey(name)) { throw new IllegalArgumentException("Action " + name + " already exists!"); }
+ if (ACTIONS.containsKey(name)) {
+ throw new IllegalArgumentException("Action " + name + " already exists!");
+ }
ACTIONS.put(name, action);
}
@@ -29,7 +31,9 @@ public static boolean runActionHook(String fullId) {
String[] parts = fullId.split("::", 2);
if (parts.length < 2) return false;
Consumer action = ACTIONS.get(parts[0]);
- if (action == null) { return false; }
+ if (action == null) {
+ return false;
+ }
action.accept(parts[1]);
return true;
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/command/GSCommand.java b/src/main/java/com/cleanroommc/groovyscript/command/GSCommand.java
index 5aee038f1..bae156599 100644
--- a/src/main/java/com/cleanroommc/groovyscript/command/GSCommand.java
+++ b/src/main/java/com/cleanroommc/groovyscript/command/GSCommand.java
@@ -214,10 +214,14 @@ public GSCommand() {
}
@Override @Nonnull
- public String getName() { return "groovyscript"; }
+ public String getName() {
+ return "groovyscript";
+ }
@Override @Nonnull
- public List getAliases() { return Arrays.asList("grs", "GroovyScript", "gs"); }
+ public List getAliases() {
+ return Arrays.asList("grs", "GroovyScript", "gs");
+ }
@Override @Nonnull
public String getUsage(@NotNull ICommandSender sender) {
@@ -246,7 +250,9 @@ private static BlockPos getBlockLookingAt(EntityPlayer player) {
Vec3d end = eyes.add(look.x * distance, look.y * distance, look.z * distance);
RayTraceResult result = player.getEntityWorld().rayTraceBlocks(eyes, end, true);
- if (result != null && result.typeOfHit == RayTraceResult.Type.BLOCK) { return result.getBlockPos(); }
+ if (result != null && result.typeOfHit == RayTraceResult.Type.BLOCK) {
+ return result.getBlockPos();
+ }
return null;
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/command/GSMekanismCommand.java b/src/main/java/com/cleanroommc/groovyscript/command/GSMekanismCommand.java
index 25dcc91e2..ce0d1734e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/command/GSMekanismCommand.java
+++ b/src/main/java/com/cleanroommc/groovyscript/command/GSMekanismCommand.java
@@ -50,7 +50,9 @@ public void execute(@NotNull MinecraftServer server, @NotNull ICommandSender sen
}
@Override
- public @NotNull String getName() { return "mekanism"; }
+ public @NotNull String getName() {
+ return "mekanism";
+ }
@Override
public @NotNull String getUsage(@NotNull ICommandSender sender) {
@@ -58,5 +60,7 @@ public void execute(@NotNull MinecraftServer server, @NotNull ICommandSender sen
}
@Override
- public @NotNull List getAliases() { return Collections.singletonList("mek"); }
+ public @NotNull List getAliases() {
+ return Collections.singletonList("mek");
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/command/PackmodeCommand.java b/src/main/java/com/cleanroommc/groovyscript/command/PackmodeCommand.java
index b43a3d281..337415db1 100644
--- a/src/main/java/com/cleanroommc/groovyscript/command/PackmodeCommand.java
+++ b/src/main/java/com/cleanroommc/groovyscript/command/PackmodeCommand.java
@@ -20,7 +20,9 @@
public class PackmodeCommand extends CommandBase {
@Override
- public @NotNull String getName() { return "packmode"; }
+ public @NotNull String getName() {
+ return "packmode";
+ }
@Override
public @NotNull String getUsage(@NotNull ICommandSender sender) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/command/SimpleCommand.java b/src/main/java/com/cleanroommc/groovyscript/command/SimpleCommand.java
index 234f2b27a..fe8028b76 100644
--- a/src/main/java/com/cleanroommc/groovyscript/command/SimpleCommand.java
+++ b/src/main/java/com/cleanroommc/groovyscript/command/SimpleCommand.java
@@ -30,7 +30,9 @@ public SimpleCommand(String name, ICommand command, String... aliases) {
}
@Override
- public @NotNull String getName() { return name; }
+ public @NotNull String getName() {
+ return name;
+ }
@Override
public @NotNull String getUsage(@NotNull ICommandSender sender) {
@@ -49,5 +51,7 @@ public interface ICommand {
}
@Override
- public @NotNull List getAliases() { return aliases; }
+ public @NotNull List getAliases() {
+ return aliases;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/content/Content.java b/src/main/java/com/cleanroommc/groovyscript/compat/content/Content.java
index ddc95a293..5b20c3152 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/content/Content.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/content/Content.java
@@ -61,8 +61,7 @@ public GroovyFluid.Builder createFluid(String name) {
}
public CreativeTabs createCreativeTab(String name, ItemStack icon) {
- return new CreativeTabs(name)
- {
+ return new CreativeTabs(name) {
@Override
public @NotNull ItemStack createIcon() {
@@ -75,7 +74,11 @@ public CreativeTabs createCreativeTab(String name, Item icon) {
return createCreativeTab(name, new ItemStack(icon));
}
- public CreativeTabs getDefaultTab() { return defaultTab; }
+ public CreativeTabs getDefaultTab() {
+ return defaultTab;
+ }
- public void setDefaultCreativeTab(CreativeTabs tab) { this.defaultTab = tab; }
+ public void setDefaultCreativeTab(CreativeTabs tab) {
+ this.defaultTab = tab;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyItem.java b/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyItem.java
index ad6686b09..b0bc45e7a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyItem.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyItem.java
@@ -105,7 +105,9 @@ public GroovyItem register() {
}
@Override
- public int getItemEnchantability() { return this.enchantability; }
+ public int getItemEnchantability() {
+ return this.enchantability;
+ }
@Override
public boolean hasEffect(@NotNull ItemStack stack) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyResourcePack.java b/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyResourcePack.java
index 1d2f07e81..bcfdefa3f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyResourcePack.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/content/GroovyResourcePack.java
@@ -29,7 +29,9 @@ public GroovyResourcePack() {
}
@Override
- public @NotNull BufferedImage getPackImage() throws IOException { return null; }
+ public @NotNull BufferedImage getPackImage() throws IOException {
+ return null;
+ }
@Override
public T getPackMetadata(@NotNull MetadataSerializer metadataSerializer,
@@ -38,5 +40,7 @@ public T getPackMetadata(@NotNull MetadataSerialize
}
@Override
- public @NotNull String getPackName() { return "GroovyScriptResources"; }
+ public @NotNull String getPackName() {
+ return "GroovyScriptResources";
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Burning.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Burning.java
index c77d064e6..837ab7745 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Burning.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Burning.java
@@ -78,11 +78,17 @@ public BurningRecipe(IIngredient input, ItemStack output, int ticks, Closure startCondition) {
}
@Override
- public String getErrorMsg() { return "Error adding in world burning recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world burning recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Explosion.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Explosion.java
index be884021c..e40741baa 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Explosion.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/Explosion.java
@@ -73,11 +73,17 @@ public ExplosionRecipe(IIngredient input, ItemStack output, float chance, Closur
this.startCondition = startCondition;
}
- public IIngredient getInput() { return input; }
+ public IIngredient getInput() {
+ return input;
+ }
- public ItemStack getOutput() { return output; }
+ public ItemStack getOutput() {
+ return output;
+ }
- public float getChance() { return chance; }
+ public float getChance() {
+ return chance;
+ }
private boolean tryRecipe(EntityItem entityItem, ItemStack itemStack) {
if (!this.input.test(itemStack)) return false;
@@ -126,7 +132,9 @@ public RecipeBuilder startCondition(Closure startCondition) {
}
@Override
- public String getErrorMsg() { return "Error adding in world explosion recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world explosion recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -152,7 +160,9 @@ public void validate(GroovyLog.Msg msg) {
public void findAndRunRecipe(EntityItem entityItem) {
ItemStack itemStack = entityItem.getItem();
for (ExplosionRecipe explosionRecipe : this.explosionRecipes) {
- if (explosionRecipe.tryRecipe(entityItem, itemStack)) { return; }
+ if (explosionRecipe.tryRecipe(entityItem, itemStack)) {
+ return;
+ }
}
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidRecipe.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidRecipe.java
index 45c86da5d..acef48059 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidRecipe.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidRecipe.java
@@ -53,7 +53,9 @@ public static void add(FluidRecipe fluidRecipe) {
public static boolean remove(FluidRecipe fluidRecipe) {
List fluidRecipes1 = fluidRecipes.get(fluidRecipe.input.getName());
- if (fluidRecipes1 != null) { return fluidRecipes1.remove(fluidRecipe); }
+ if (fluidRecipes1 != null) {
+ return fluidRecipes1.remove(fluidRecipe);
+ }
return false;
}
@@ -118,7 +120,9 @@ public static boolean findAndRunRecipe(Fluid fluid, World world, BlockPos pos, I
}
// search for a recipe using those items
for (FluidRecipe recipe : candidates) {
- if (recipe.tryRecipe(world, pos, itemsInFluid)) { return true; }
+ if (recipe.tryRecipe(world, pos, itemsInFluid)) {
+ return true;
+ }
}
return false;
}
@@ -138,11 +142,17 @@ public FluidRecipe(Fluid input, IIngredient[] itemInputs, float[] itemConsumeCha
this.afterRecipe = afterRecipe;
}
- public Fluid getFluidInput() { return input; }
+ public Fluid getFluidInput() {
+ return input;
+ }
- public IIngredient[] getItemInputs() { return itemInputs; }
+ public IIngredient[] getItemInputs() {
+ return itemInputs;
+ }
- public float[] getItemConsumeChance() { return itemConsumeChance; }
+ public float[] getItemConsumeChance() {
+ return itemConsumeChance;
+ }
@Optional.Method(modid = "jei")
public abstract void setJeiOutput(IIngredients ingredients);
@@ -202,7 +212,9 @@ private boolean tryRecipe(World world, BlockPos pos, List itemsIn
}
return false;
}
- if (this.startCondition != null && !ClosureHelper.call(true, this.startCondition, world, pos)) { return false; }
+ if (this.startCondition != null && !ClosureHelper.call(true, this.startCondition, world, pos)) {
+ return false;
+ }
// kill all items with the before calculated amount
itemsInFluid.forEach(ItemContainer::killItems);
// handle the output of the recipe
@@ -225,10 +237,16 @@ private boolean tryRecipe(World world, BlockPos pos, List itemsIn
public static Fluid getFluid(IBlockState state) {
Block block = state.getBlock();
- if (block instanceof IFluidBlock) { return ((IFluidBlock) block).getFluid(); }
+ if (block instanceof IFluidBlock) {
+ return ((IFluidBlock) block).getFluid();
+ }
if (block instanceof BlockLiquid) {
- if (state.getMaterial() == Material.WATER) { return FluidRegistry.WATER; }
- if (state.getMaterial() == Material.LAVA) { return FluidRegistry.LAVA; }
+ if (state.getMaterial() == Material.WATER) {
+ return FluidRegistry.WATER;
+ }
+ if (state.getMaterial() == Material.LAVA) {
+ return FluidRegistry.LAVA;
+ }
}
return null;
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToBlock.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToBlock.java
index 0d3984892..ed5c19e6f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToBlock.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToBlock.java
@@ -47,8 +47,10 @@ public boolean removeByInput(FluidStack fluid) {
GroovyLog.msg("Error removing in world fluid to block recipe").add("input fluid must not be empty").error().post();
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to block recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -58,16 +60,20 @@ public boolean removeByInput(FluidStack fluid) {
}
public boolean removeByInput(FluidStack fluid, ItemStack... input) {
- if (GroovyLog.msg("Error removing in world fluid to block recipe").add(IngredientHelper.isEmpty(fluid),
+ if (
+ GroovyLog.msg("Error removing in world fluid to block recipe").add(IngredientHelper.isEmpty(fluid),
() -> "input fluid must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input ingredients must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
input),
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to block recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -99,7 +105,9 @@ public Recipe(Fluid input, IIngredient[] itemInputs, float[] itemConsumeChance,
this.output = output;
}
- public IBlockState getOutput() { return output; }
+ public IBlockState getOutput() {
+ return output;
+ }
@Override
public void setJeiOutput(IIngredients ingredients) {
@@ -127,7 +135,9 @@ public RecipeBuilder output(Block block) {
}
@Override
- public String getErrorMsg() { return "Error adding in world fluid to block recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world fluid to block recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToFluid.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToFluid.java
index 036b10b52..40720e255 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToFluid.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToFluid.java
@@ -45,8 +45,10 @@ public boolean removeByInput(FluidStack fluid) {
GroovyLog.msg("Error removing in world fluid to fluid recipe").add("input fluid must not be empty").error().post();
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to fluid recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -56,16 +58,20 @@ public boolean removeByInput(FluidStack fluid) {
}
public boolean removeByInput(FluidStack fluid, ItemStack... input) {
- if (GroovyLog.msg("Error removing in world fluid to fluid recipe").add(IngredientHelper.isEmpty(fluid),
+ if (
+ GroovyLog.msg("Error removing in world fluid to fluid recipe").add(IngredientHelper.isEmpty(fluid),
() -> "input fluid must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input ingredients must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
input),
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to fluid recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -97,7 +103,9 @@ public Recipe(Fluid input, IIngredient[] itemInputs, float[] itemConsumeChance,
this.output = output;
}
- public Fluid getOutput() { return output; }
+ public Fluid getOutput() {
+ return output;
+ }
@Override
public void setJeiOutput(IIngredients ingredients) {
@@ -113,7 +121,9 @@ public void handleRecipeResult(World world, BlockPos pos) {
public static class RecipeBuilder extends FluidRecipe.RecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding in world fluid to fluid recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world fluid to fluid recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToItem.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToItem.java
index bfad67b3b..95d0cbcc9 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToItem.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/FluidToItem.java
@@ -47,8 +47,10 @@ public boolean removeByInput(FluidStack fluid) {
GroovyLog.msg("Error removing in world fluid to item recipe").add("input fluid must not be empty").error().post();
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class,
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to item recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -58,16 +60,20 @@ public boolean removeByInput(FluidStack fluid) {
}
public boolean removeByInput(FluidStack fluid, ItemStack... input) {
- if (GroovyLog.msg("Error removing in world fluid to item recipe").add(IngredientHelper.isEmpty(fluid),
+ if (
+ GroovyLog.msg("Error removing in world fluid to item recipe").add(IngredientHelper.isEmpty(fluid),
() -> "input fluid must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input ingredients must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return false;
}
- if (!FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
+ if (
+ !FluidRecipe.removeIf(fluid.getFluid(), fluidRecipe -> fluidRecipe.getClass() == Recipe.class && fluidRecipe.matches(
input),
- fluidRecipe -> addBackup((Recipe) fluidRecipe))) {
+ fluidRecipe -> addBackup((Recipe) fluidRecipe))
+ ) {
GroovyLog.msg("Error removing in world fluid to item recipe").add("no recipes found for {}", fluid.getFluid()
.getName()).error()
.post();
@@ -101,9 +107,13 @@ public Recipe(Fluid input, IIngredient[] itemInputs, float[] itemConsumeChance,
this.fluidConsumptionChance = fluidConsumptionChance;
}
- public ItemStack getOutput() { return output; }
+ public ItemStack getOutput() {
+ return output;
+ }
- public float getFluidConsumptionChance() { return fluidConsumptionChance; }
+ public float getFluidConsumptionChance() {
+ return fluidConsumptionChance;
+ }
@Override
public void setJeiOutput(IIngredients ingredients) {
@@ -112,7 +122,9 @@ public void setJeiOutput(IIngredients ingredients) {
@Override
public void handleRecipeResult(World world, BlockPos pos) {
- if (this.fluidConsumptionChance > 0 && (this.fluidConsumptionChance >= 1 || GroovyScript.RND.nextFloat() <= this.fluidConsumptionChance)) {
+ if (
+ this.fluidConsumptionChance > 0 && (this.fluidConsumptionChance >= 1 || GroovyScript.RND.nextFloat() <= this.fluidConsumptionChance)
+ ) {
world.setBlockToAir(pos);
}
InWorldCrafting.spawnItem(world, pos, getOutput().copy());
@@ -134,7 +146,9 @@ public RecipeBuilder fluidConsumptionChance(float fluidConsumptionChance) {
}
@Override
- public String getErrorMsg() { return "Error adding in world fluid to item recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world fluid to item recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/PistonPush.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/PistonPush.java
index db177795d..d71ecbcf0 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/PistonPush.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/PistonPush.java
@@ -73,19 +73,29 @@ public PistonPushRecipe(IIngredient input, ItemStack output, int maxConversionsP
this.startCondition = startCondition;
}
- public IIngredient getInput() { return input; }
+ public IIngredient getInput() {
+ return input;
+ }
- public ItemStack getOutput() { return output; }
+ public ItemStack getOutput() {
+ return output;
+ }
- public int getMaxConversionsPerPush() { return maxConversionsPerPush; }
+ public int getMaxConversionsPerPush() {
+ return maxConversionsPerPush;
+ }
- public int getMinHarvestLevel() { return minHarvestLevel; }
+ public int getMinHarvestLevel() {
+ return minHarvestLevel;
+ }
private boolean tryRecipe(Consumer entitySpawner, EntityItem entityItem, ItemStack itemStack,
IBlockState pushingAgainst) {
if (!this.input.test(itemStack)) return false;
- if (this.startCondition != null && !ClosureHelper.call(true, this.startCondition, entityItem, itemStack,
- pushingAgainst)) return false;
+ if (
+ this.startCondition != null && !ClosureHelper.call(true, this.startCondition, entityItem, itemStack,
+ pushingAgainst)
+ ) return false;
if (this.minHarvestLevel >= 0 && this.minHarvestLevel > pushingAgainst.getBlock().getHarvestLevel(pushingAgainst))
return false;
ItemStack newStack = this.output.copy();
@@ -125,7 +135,9 @@ public RecipeBuilder startCondition(Closure beforeRecipe) {
}
@Override
- public String getErrorMsg() { return "Error adding in world piston push recipe"; }
+ public String getErrorMsg() {
+ return "Error adding in world piston push recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -152,7 +164,9 @@ public void validate(GroovyLog.Msg msg) {
public void findAndRunRecipe(Consumer entitySpawner, EntityItem entityItem, IBlockState pushingAgainst) {
ItemStack itemStack = entityItem.getItem();
for (PistonPushRecipe pistonPushRecipe : this.pistonPushRecipes) {
- if (pistonPushRecipe.tryRecipe(entitySpawner, entityItem, itemStack, pushingAgainst)) { return; }
+ if (pistonPushRecipe.tryRecipe(entitySpawner, entityItem, itemStack, pushingAgainst)) {
+ return;
+ }
}
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/BurningRecipeCategory.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/BurningRecipeCategory.java
index b4d4ad636..1b2f8bb70 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/BurningRecipeCategory.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/BurningRecipeCategory.java
@@ -60,7 +60,9 @@ public void drawExtras(@NotNull Minecraft minecraft) {
}
@Nullable @Override
- public IDrawable getIcon() { return icon; }
+ public IDrawable getIcon() {
+ return icon;
+ }
public static class RecipeWrapper implements IRecipeWrapper {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/ExplosionRecipeCategory.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/ExplosionRecipeCategory.java
index ee5c20b8b..1f23ebed5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/ExplosionRecipeCategory.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/ExplosionRecipeCategory.java
@@ -61,7 +61,9 @@ public void drawExtras(@NotNull Minecraft minecraft) {
}
@Nullable @Override
- public IDrawable getIcon() { return icon; }
+ public IDrawable getIcon() {
+ return icon;
+ }
public static class RecipeWrapper implements IRecipeWrapper {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/FluidRecipeCategory.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/FluidRecipeCategory.java
index 6362e1873..eb4284283 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/FluidRecipeCategory.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/FluidRecipeCategory.java
@@ -108,7 +108,9 @@ public void drawExtras(@NotNull Minecraft minecraft) {
}
@Nullable @Override
- public IDrawable getIcon() { return this.icon; }
+ public IDrawable getIcon() {
+ return this.icon;
+ }
public static void drawLine(Minecraft minecraft, String langKey, int x, int y, int color, Object... obj) {
minecraft.fontRenderer.drawSplitString(I18n.format(langKey, obj), x, y, 168, color);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/PistonPushRecipeCategory.java b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/PistonPushRecipeCategory.java
index 93685b546..2cae71fcd 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/PistonPushRecipeCategory.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/inworldcrafting/jei/PistonPushRecipeCategory.java
@@ -60,7 +60,9 @@ public void drawExtras(@NotNull Minecraft minecraft) {
}
@Nullable @Override
- public IDrawable getIcon() { return icon; }
+ public IDrawable getIcon() {
+ return icon;
+ }
public static class RecipeWrapper implements IRecipeWrapper {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/loot/LootEntryBuilder.java b/src/main/java/com/cleanroommc/groovyscript/compat/loot/LootEntryBuilder.java
index c21023b58..3612f8cd9 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/loot/LootEntryBuilder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/loot/LootEntryBuilder.java
@@ -247,7 +247,9 @@ public LootEntryBuilder setMetadata(int min, int max, LootCondition... condition
public LootEntryBuilder setNBT(String tag) {
try {
return this.setNBT(JsonToNBT.getTagFromJson(tag), EMPTY_CONDITIONS);
- } catch (NBTException e) {
+ } catch (
+ NBTException e
+ ) {
out.add("could not parse nbt string");
return this;
}
@@ -264,7 +266,9 @@ public LootEntryBuilder setNBT(NBTTagCompound tag) {
public LootEntryBuilder setNBT(String tag, LootCondition... conditions) {
try {
return this.setNBT(JsonToNBT.getTagFromJson(tag), conditions);
- } catch (NBTException e) {
+ } catch (
+ NBTException e
+ ) {
out.add("could not parse nbt string");
return this;
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ExternalModContainer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ExternalModContainer.java
index a869e58f8..5880c7010 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ExternalModContainer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ExternalModContainer.java
@@ -36,16 +36,24 @@ public class ExternalModContainer extends GroovyContainer getAliases() { return aliases; }
+ public Collection getAliases() {
+ return aliases;
+ }
@Override
public void onCompatLoaded(GroovyContainer> container) {
@@ -58,5 +66,7 @@ public GroovyPropertyContainer get() {
}
@Override
- public @NotNull GroovyPlugin.Priority getOverridePriority() { return priority; }
+ public @NotNull GroovyPlugin.Priority getOverridePriority() {
+ return priority;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyContainer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyContainer.java
index 8fc33176e..da999d75b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyContainer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyContainer.java
@@ -29,7 +29,9 @@ public String toString() {
* @deprecated Use {@link #addProperty(INamed)} and {@link #addPropertiesOfFields(Object, boolean)} from this class instead.
*/
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "1.2.0") @GroovyBlacklist
- public IRegistrar getVirtualizedRegistrar() { return getRegistrar(); }
+ public IRegistrar getVirtualizedRegistrar() {
+ return getRegistrar();
+ }
/**
* @deprecated Use {@link #addProperty(INamed)} and {@link #addPropertiesOfFields(Object, boolean)} from this class instead.
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyPropertyContainer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyPropertyContainer.java
index eceb32fec..e9336698c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyPropertyContainer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/GroovyPropertyContainer.java
@@ -35,10 +35,14 @@ protected void addProperty(INamed property) {
}
@UnmodifiableView
- public Collection getRegistries() { return this.view.values(); }
+ public Collection getRegistries() {
+ return this.view.values();
+ }
@UnmodifiableView
- public Map getProperties() { return view; }
+ public Map getProperties() {
+ return view;
+ }
/**
* Register bracket handlers, bindings, expansions etc. here
@@ -57,14 +61,18 @@ protected void addPropertyFieldsOf(Object object, boolean privateToo) {
}
for (Field field : clazz.getDeclaredFields()) {
boolean isStatic = Modifier.isStatic(field.getModifiers());
- if (!field.isAnnotationPresent(GroovyBlacklist.class) && INamed.class.isAssignableFrom(field.getType()) && (!staticOnly || isStatic) && (privateToo || (Modifier.isPublic(field.getModifiers())))) {
+ if (
+ !field.isAnnotationPresent(GroovyBlacklist.class) && INamed.class.isAssignableFrom(field.getType()) && (!staticOnly || isStatic) && (privateToo || (Modifier.isPublic(field.getModifiers())))
+ ) {
try {
if (!field.isAccessible()) field.setAccessible(true);
Object o = field.get(isStatic ? null : object);
if (o != null) {
addProperty((INamed) o);
}
- } catch (IllegalAccessException e) {
+ } catch (
+ IllegalAccessException e
+ ) {
GroovyLog.get().errorMC("Failed to register {} as named property", field.getName());
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/InternalModContainer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/InternalModContainer.java
index 3867f62f0..817a16db5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/InternalModContainer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/InternalModContainer.java
@@ -57,10 +57,14 @@ public class InternalModContainer extends Gro
}
@Override
- public boolean isLoaded() { return loaded; }
+ public boolean isLoaded() {
+ return loaded;
+ }
@NotNull @Override
- public Collection getAliases() { return aliases; }
+ public Collection getAliases() {
+ return aliases;
+ }
@Override
public T get() {
@@ -68,10 +72,14 @@ public T get() {
}
@Override
- public @NotNull String getModId() { return modId; }
+ public @NotNull String getModId() {
+ return modId;
+ }
@Override
- public @NotNull String getContainerName() { return containerName; }
+ public @NotNull String getContainerName() {
+ return containerName;
+ }
@Override
public void onCompatLoaded(GroovyContainer> container) {}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java
index 6c9414abd..4881a8bbd 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java
@@ -191,9 +191,13 @@ public void setup(ASMDataTable dataTable) {
if (!externalPluginClasses.contains(clazz)) {
registerContainer((GroovyPlugin) clazz.newInstance());
}
- } catch (ClassNotFoundException | InstantiationException e) {
+ } catch (
+ ClassNotFoundException | InstantiationException e
+ ) {
GroovyScript.LOGGER.error("Could not initialize Groovy Plugin '{}'", data.getClassName());
- } catch (Throwable e) {
+ } catch (
+ Throwable e
+ ) {
throw new RuntimeException(e);
}
}
@@ -254,7 +258,9 @@ public Object getProperty(String name) {
@Deprecated
- public @UnmodifiableView Map> getProperties() { return containersView; }
+ public @UnmodifiableView Map> getProperties() {
+ return containersView;
+ }
@GroovyBlacklist @ApiStatus.Internal
public static void init() {
@@ -275,7 +281,9 @@ public static void init() {
@NotNull
public GroovyContainer> getContainer(String mod) {
- if (!containers.containsKey(mod)) { throw new IllegalStateException("There is no compat registered for '" + mod + "'!"); }
+ if (!containers.containsKey(mod)) {
+ throw new IllegalStateException("There is no compat registered for '" + mod + "'!");
+ }
return containers.get(mod);
}
@@ -283,5 +291,7 @@ public boolean hasCompatFor(String mod) {
return containers.containsKey(mod);
}
- public static boolean isFrozen() { return frozen; }
+ public static boolean isFrozen() {
+ return frozen;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/AtomicReconstructor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/AtomicReconstructor.java
index 34b581df6..05d82a666 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/AtomicReconstructor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/AtomicReconstructor.java
@@ -106,7 +106,9 @@ public RecipeBuilder energy(int energy) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Atomic Reconstructor recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Atomic Reconstructor recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/BallOfFur.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/BallOfFur.java
index 35bb6d232..3d304cd15 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/BallOfFur.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/BallOfFur.java
@@ -83,7 +83,9 @@ public RecipeBuilder weight(int weight) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Ball Of Fur recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Ball Of Fur recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Compost.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Compost.java
index 61dd4ed9d..4bd0cd2bd 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Compost.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Compost.java
@@ -111,7 +111,9 @@ public RecipeBuilder outputDisplay(IBlockState outputDisplay) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Compost recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Compost recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Crusher.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Crusher.java
index df2e556e5..248ed5e44 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Crusher.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Crusher.java
@@ -103,7 +103,9 @@ public RecipeBuilder chance(int chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Crusher recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Crusher recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Empowerer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Empowerer.java
index 6666f1d4f..019746cca 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Empowerer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/Empowerer.java
@@ -188,7 +188,9 @@ public RecipeBuilder blue(float blue) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Empowerer recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Empowerer recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/NetherMiningLens.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/NetherMiningLens.java
index 48bbafa7a..139ae21b6 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/NetherMiningLens.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/NetherMiningLens.java
@@ -102,7 +102,9 @@ public RecipeBuilder weight(int weight) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Nether Mining Lens recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Nether Mining Lens recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/OilGen.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/OilGen.java
index a617ef531..e26790d18 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/OilGen.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/OilGen.java
@@ -115,7 +115,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Oil Gen recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Oil Gen recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/StoneMiningLens.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/StoneMiningLens.java
index 961cdf5c9..6f3f53d8b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/StoneMiningLens.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/StoneMiningLens.java
@@ -102,7 +102,9 @@ public RecipeBuilder weight(int weight) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Stone Mining Lens recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Stone Mining Lens recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/TreasureChest.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/TreasureChest.java
index 8ac9f0c34..5dba58175 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/TreasureChest.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/actuallyadditions/TreasureChest.java
@@ -100,7 +100,9 @@ public RecipeBuilder max(int max) {
}
@Override
- public String getErrorMsg() { return "Error adding Actually Additions Treasure Chest Loot recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Actually Additions Treasure Chest Loot recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/advancedmortars/Mortar.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/advancedmortars/Mortar.java
index 51cc452da..eaddfb880 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/advancedmortars/Mortar.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/advancedmortars/Mortar.java
@@ -180,7 +180,9 @@ public RecipeBuilder secondaryOutputChance(float chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Advanced Mortars recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Advanced Mortars recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Accessory.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Accessory.java
index 2deebfea7..094984877 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Accessory.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Accessory.java
@@ -69,7 +69,9 @@ public RecipeBuilder accessoryType(AccessoryType type) {
}
@Override
- public String getErrorMsg() { return "Error adding Aether Accessory"; }
+ public String getErrorMsg() {
+ return "Error adding Aether Accessory";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Enchanter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Enchanter.java
index d4ceb8229..a2a11331e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Enchanter.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Enchanter.java
@@ -53,7 +53,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Aether Enchanter Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Aether Enchanter Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Freezer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Freezer.java
index b4b4fa0a7..a76fef7e0 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Freezer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/aetherlegacy/Freezer.java
@@ -53,7 +53,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Aether Freezer Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Aether Freezer Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Alchemistry.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Alchemistry.java
index c7fa1b4b1..9ab9f4255 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Alchemistry.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Alchemistry.java
@@ -29,7 +29,9 @@ public void initialize(GroovyContainer> container) {
ChemicalCompound compound = CompoundRegistry.INSTANCE.get(parsedName);
if (compound == null || compound.toItemStack(1).isEmpty()) {
ChemicalElement element = ElementRegistry.INSTANCE.get(parsedName);
- if (element == null || element.toItemStack(1).isEmpty()) { return Result.error(); }
+ if (element == null || element.toItemStack(1).isEmpty()) {
+ return Result.error();
+ }
return Result.some(element.toItemStack(1));
}
return Result.some(compound.toItemStack(1));
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Atomizer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Atomizer.java
index d8d9806d4..f362dcc26 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Atomizer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Atomizer.java
@@ -105,7 +105,9 @@ public RecipeBuilder reversible() {
}
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Atomizer recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Atomizer recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Combiner.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Combiner.java
index 7ca0c1c9f..211dd3b7f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Combiner.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Combiner.java
@@ -104,7 +104,9 @@ public RecipeBuilder gamestage(String gamestage) {
}
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Combiner recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Combiner recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Dissolver.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Dissolver.java
index 68e278e4f..24fb6e59e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Dissolver.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Dissolver.java
@@ -155,7 +155,9 @@ public RecipeBuilder rolls(int rolls) {
}
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Dissolver recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Dissolver recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Electrolyzer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Electrolyzer.java
index 7a4e8ae29..88a56508a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Electrolyzer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Electrolyzer.java
@@ -144,7 +144,9 @@ public RecipeBuilder consumptionChance(int consumptionChance) {
}
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Electrolyzer recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Electrolyzer recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Evaporator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Evaporator.java
index 5b1e2a2d9..f5801ec97 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Evaporator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Evaporator.java
@@ -89,7 +89,9 @@ public void removeAll() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Evaporator recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Evaporator recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Liquifier.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Liquifier.java
index eb819b71e..9ee6244ab 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Liquifier.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/alchemistry/Liquifier.java
@@ -89,7 +89,9 @@ public void removeAll() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Alchemistry Liquifier recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Alchemistry Liquifier recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Attunement.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Attunement.java
index 770d0abba..4c603e597 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Attunement.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Attunement.java
@@ -100,13 +100,15 @@ public void remove(Capability> capability, TunnelType tunnel) {
@MethodDescription
public void removeByItem(ItemStack item) {
- for (Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getKey()
- .isItemEqual(item))
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getKey()
+ .isItemEqual(item))
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getTunnels().entrySet().removeIf(x -> x
.getKey()
@@ -116,13 +118,15 @@ public void removeByItem(ItemStack item) {
@MethodDescription
public void removeByMod(String modid) {
- for (Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getModIdTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getKey()
- .equals(modid))
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getModIdTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getKey()
+ .equals(modid))
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getModIdTunnels().entrySet().removeIf(x -> x
.getKey()
@@ -132,12 +136,14 @@ public void removeByMod(String modid) {
@MethodDescription
public void removeByCapability(Capability> capability) {
- for (Map.Entry, TunnelType> pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getCapTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getKey() == capability)
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry, TunnelType> pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getCapTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getKey() == capability)
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getCapTunnels().entrySet().removeIf(x -> x
.getKey() == pair.getKey());
@@ -146,34 +152,40 @@ public void removeByCapability(Capability> capability) {
@MethodDescription(example = @Example("tunnel('item')"))
public void removeByTunnel(TunnelType tunnel) {
- for (Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getValue() == tunnel)
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getValue() == tunnel)
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getTunnels().entrySet().removeIf(x -> x
.getKey()
.isItemEqual(pair.getKey()));
}
- for (Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getModIdTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getValue() == tunnel)
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getModIdTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getValue() == tunnel)
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getModIdTunnels().entrySet().removeIf(x -> x
.getKey()
.equals(pair.getKey()));
}
- for (Map.Entry, TunnelType> pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
- .getCapTunnels()
- .entrySet()
- .stream()
- .filter(x -> x.getValue() == tunnel)
- .collect(Collectors.toList())) {
+ for (
+ Map.Entry, TunnelType> pair : ((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel())
+ .getCapTunnels()
+ .entrySet()
+ .stream()
+ .filter(x -> x.getValue() == tunnel)
+ .collect(Collectors.toList())
+ ) {
addBackup(Pair.of(pair.getKey(), pair.getValue()));
((P2PTunnelRegistryAccessor) AEApi.instance().registries().p2pTunnel()).getCapTunnels().entrySet().removeIf(x -> x
.getKey() == pair.getKey());
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Grinder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Grinder.java
index 82023ac95..a7be4669a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Grinder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Grinder.java
@@ -118,7 +118,9 @@ public RecipeBuilder chance2(float chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Applied Energistics 2 Grinder recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Applied Energistics 2 Grinder recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Inscriber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Inscriber.java
index fad0c3a71..482b62a46 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Inscriber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Inscriber.java
@@ -116,7 +116,9 @@ public RecipeBuilder bottom(ItemStack bottom) {
}
@Override
- public String getErrorMsg() { return "Error adding Applied Energistics 2 Inscriber recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Applied Energistics 2 Inscriber recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Spatial.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Spatial.java
index ed98e0f91..8126dec93 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Spatial.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/appliedenergistics2/Spatial.java
@@ -57,7 +57,9 @@ public void removeAll() {
private static Class extends TileEntity> loadClass(String className) {
try {
return (Class extends TileEntity>) Class.forName(className);
- } catch (Exception e) {
+ } catch (
+ Exception e
+ ) {
GroovyLog.get().error("Failed to load TileEntity class '{}'", className);
}
return null;
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/arcanearchives/GemCuttingTable.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/arcanearchives/GemCuttingTable.java
index 45242f4dc..9760d140d 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/arcanearchives/GemCuttingTable.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/arcanearchives/GemCuttingTable.java
@@ -96,10 +96,14 @@ public void removeAll() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getRecipeNamePrefix() { return "groovyscript_gem_cutting_table_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_gem_cutting_table_";
+ }
@Override
- public String getErrorMsg() { return "Error adding Arcane Archives Gem Cutting Table recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Arcane Archives Gem Cutting Table recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/AstralSorcery.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/AstralSorcery.java
index 47edf7a00..1c32fe35f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/AstralSorcery.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/AstralSorcery.java
@@ -40,7 +40,9 @@ public class AstralSorcery extends GroovyPropertyContainer {
public void initialize(GroovyContainer> container) {
container.objectMapperBuilder("constellation", IConstellation.class).parser((s, args) -> {
for (IConstellation constellation : ConstellationRegistryAccessor.getConstellationList()) {
- if (constellation.getSimpleName().equalsIgnoreCase(s)) { return Result.some(constellation); }
+ if (constellation.getSimpleName().equalsIgnoreCase(s)) {
+ return Result.some(constellation);
+ }
}
return Result.error();
}).completerOfNamed(ConstellationRegistryAccessor::getConstellationList, IConstellation::getSimpleName).docOfType(
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/ChaliceInteraction.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/ChaliceInteraction.java
index 0913a87b0..f4e8756b9 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/ChaliceInteraction.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/ChaliceInteraction.java
@@ -63,12 +63,14 @@ private boolean remove(LiquidInteraction recipe) {
@MethodDescription
public void removeByInput(Fluid fluid1, Fluid fluid2) {
getRegistry().removeIf(rec -> {
- if ((rec.getComponent1().getFluid().equals(fluid1) && rec.getComponent2().getFluid().equals(fluid2)) || (rec
+ if (
+ (rec.getComponent1().getFluid().equals(fluid1) && rec.getComponent2().getFluid().equals(fluid2)) || (rec
.getComponent1()
.getFluid()
.equals(fluid2) && rec.getComponent2()
.getFluid()
- .equals(fluid1))) {
+ .equals(fluid1))
+ ) {
addBackup(rec);
return true;
}
@@ -173,7 +175,9 @@ public RecipeBuilder fluidInput(FluidStack fluid) {
}
@Override
- public String getErrorMsg() { return "Error adding Astral Sorcery Chalice Interaction"; }
+ public String getErrorMsg() {
+ return "Error adding Astral Sorcery Chalice Interaction";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/Grindstone.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/Grindstone.java
index eb998e4ce..581802a1c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/Grindstone.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/Grindstone.java
@@ -113,7 +113,9 @@ public RecipeBuilder secondaryChance(float chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Astral Sorcery Grindstone recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Astral Sorcery Grindstone recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/InfusionAltar.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/InfusionAltar.java
index 0186593e5..6c0f28d13 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/InfusionAltar.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/InfusionAltar.java
@@ -145,7 +145,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Astral Infusion recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Astral Infusion recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -158,8 +160,7 @@ public void validate(GroovyLog.Msg msg) {
@Override @RecipeBuilderRegistrationMethod
public @Nullable BasicInfusionRecipe register() {
if (!validate()) return null;
- BasicInfusionRecipe recipe = new BasicInfusionRecipe(output.get(0), AstralSorcery.toItemHandle(input.get(0)))
- {
+ BasicInfusionRecipe recipe = new BasicInfusionRecipe(output.get(0), AstralSorcery.toItemHandle(input.get(0))) {
@Override
public int craftingTickTime() {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/LightTransmutation.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/LightTransmutation.java
index 2a9569720..7509d683a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/LightTransmutation.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/LightTransmutation.java
@@ -181,7 +181,9 @@ public RecipeBuilder constellation(IWeakConstellation constellation) {
}
@Override
- public String getErrorMsg() { return "Error adding Astral Sorcery Light Transmutation recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Astral Sorcery Light Transmutation recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/starlightaltar/AltarRecipeBuilder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/starlightaltar/AltarRecipeBuilder.java
index c00d0da57..3f05b06dc 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/starlightaltar/AltarRecipeBuilder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/astralsorcery/starlightaltar/AltarRecipeBuilder.java
@@ -65,11 +65,12 @@ private static List computeFluidConsumptionSlots(ItemHandle[] inputs) {
private static DiscoveryRecipe discoveryAltar(String name, ItemStack output, ItemHandle[] inputs, int starlightRequired,
int craftingTickTime, List fluidStacks) {
- return new DiscoveryRecipe(registerNative(name, output, inputs))
- {
+ return new DiscoveryRecipe(registerNative(name, output, inputs)) {
@Override
- public int getPassiveStarlightRequired() { return starlightRequired; }
+ public int getPassiveStarlightRequired() {
+ return starlightRequired;
+ }
@Override
public int craftingTickTime() {
@@ -85,11 +86,12 @@ public boolean mayDecrement(TileAltar ta, ShapedRecipeSlot slot) {
private static AttunementRecipe attunementAltar(String name, ItemStack output, ItemHandle[] inputs, int starlightRequired,
int craftingTickTime, List fluidStacks) {
- AttunementRecipe recipe = new AttunementRecipe(registerNative(name, output, inputs))
- {
+ AttunementRecipe recipe = new AttunementRecipe(registerNative(name, output, inputs)) {
@Override
- public int getPassiveStarlightRequired() { return starlightRequired; }
+ public int getPassiveStarlightRequired() {
+ return starlightRequired;
+ }
@Override
public int craftingTickTime() {
@@ -119,11 +121,12 @@ public boolean mayDecrement(TileAltar ta, AttunementAltarSlot slot) {
private static ConstellationRecipe constellationAltar(String name, ItemStack output, ItemHandle[] inputs,
int starlightRequired, int craftingTickTime,
List fluidStacks) {
- ConstellationRecipe recipe = new ConstellationRecipe(registerNative(name, output, inputs))
- {
+ ConstellationRecipe recipe = new ConstellationRecipe(registerNative(name, output, inputs)) {
@Override
- public int getPassiveStarlightRequired() { return starlightRequired; }
+ public int getPassiveStarlightRequired() {
+ return starlightRequired;
+ }
@Override
public int craftingTickTime() {
@@ -163,11 +166,12 @@ public boolean mayDecrement(TileAltar ta, ConstellationAtlarSlot slot) {
private static TraitRecipe traitAltar(String name, ItemStack output, ItemHandle[] inputs, int starlightRequired,
int craftingTickTime, List fluidStacks, IConstellation requiredConstellation,
ItemHandle[] outerInputs) {
- TraitRecipe recipe = new TraitRecipe(registerNative(name, output, inputs))
- {
+ TraitRecipe recipe = new TraitRecipe(registerNative(name, output, inputs)) {
@Override
- public int getPassiveStarlightRequired() { return starlightRequired; }
+ public int getPassiveStarlightRequired() {
+ return starlightRequired;
+ }
@Override
public int craftingTickTime() {
@@ -303,7 +307,9 @@ public Shaped outerInput(Collection ings) {
private boolean flattenMatrix() {
ItemHandle[] in = AltarInputOrder.initInputList(this.altarLevel);
int[][] map = AltarInputOrder.getMap(this.altarLevel);
- if (map == null || in == null) { return false; }
+ if (map == null || in == null) {
+ return false;
+ }
for (int i = 0; i < this.keyBasedMatrix.length; i++) {
String row = this.keyBasedMatrix[i];
@@ -326,7 +332,9 @@ private boolean flattenMatrix() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_starlight_altar_recipe_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_starlight_altar_recipe_";
+ }
@Override @GroovyBlacklist
public void validateName() {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/Compressor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/Compressor.java
index c015a919e..fcfba8233 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/Compressor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/Compressor.java
@@ -100,10 +100,14 @@ public RecipeBuilder inputCount(int inputCount) {
}
@Override
- public String getRecipeNamePrefix() { return "avaritia_compressor_"; }
+ public String getRecipeNamePrefix() {
+ return "avaritia_compressor_";
+ }
@Override
- public String getErrorMsg() { return "Error adding Avaritia compressor recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Avaritia compressor recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/ExtremeRecipeBuilder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/ExtremeRecipeBuilder.java
index deae024c8..2ea5e5520 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/ExtremeRecipeBuilder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/avaritia/ExtremeRecipeBuilder.java
@@ -21,7 +21,9 @@ public Shaped() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_extreme_shaped_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_extreme_shaped_";
+ }
@Override @RecipeBuilderRegistrationMethod(hierarchy = 5)
public IExtremeRecipe register() {
@@ -71,7 +73,9 @@ public Shapeless() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_extreme_shapeless_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_extreme_shapeless_";
+ }
public boolean validate() {
GroovyLog.Msg msg = GroovyLog.msg("Error adding shapeless Extended Crafting Table recipe").error();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Cauldron.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Cauldron.java
index 201aa6511..c9fac88c5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Cauldron.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Cauldron.java
@@ -125,7 +125,9 @@ public RecipeBuilder priority(int priority) {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Cauldron recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Cauldron recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Crucible.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Crucible.java
index 235e6fb8d..f26af807f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Crucible.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Crucible.java
@@ -130,7 +130,9 @@ public RecipeBuilder priority(int priority) {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Cauldron recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Cauldron recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Hopper.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Hopper.java
index b10d3304f..6e64f241e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Hopper.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Hopper.java
@@ -118,7 +118,9 @@ public RecipeBuilder inWorldItemOutput(Collection inWorldItemOutputs)
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Filtered Hopper recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Filtered Hopper recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/HopperFilters.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/HopperFilters.java
index 1cd3444a3..35a5c13b8 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/HopperFilters.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/HopperFilters.java
@@ -116,10 +116,14 @@ public RecipeBuilder filter(IIngredient filter) {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_hopper_filter_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_hopper_filter_";
+ }
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Hopper Filter recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Hopper Filter recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Kiln.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Kiln.java
index 187b7e1c3..b8522541b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Kiln.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Kiln.java
@@ -145,7 +145,9 @@ public RecipeBuilder ignoreHeat() {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Kiln recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Kiln recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/MillStone.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/MillStone.java
index 7a1484c6f..3e472b432 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/MillStone.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/MillStone.java
@@ -130,7 +130,9 @@ public RecipeBuilder priority(int priority) {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Mill recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Mill recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Saw.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Saw.java
index 3d79e642a..210e18c07 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Saw.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Saw.java
@@ -123,7 +123,9 @@ public RecipeBuilder input(IIngredient input) {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Saw recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Saw recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Turntable.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Turntable.java
index dcbe4422e..58d184c7b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Turntable.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/betterwithmods/Turntable.java
@@ -142,7 +142,9 @@ public RecipeBuilder rotations(int rotations) {
}
@Override
- public String getErrorMsg() { return "Error adding Better With Mods Turntable recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Better With Mods Turntable recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyArray.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyArray.java
index 24fc6ac09..e75f88d2a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyArray.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyArray.java
@@ -69,15 +69,21 @@ public boolean remove(RecipeAlchemyArray recipe) {
@MethodDescription(example = @Example("item('bloodmagic:component:13')"))
public boolean removeByInput(IIngredient input) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
recipe -> {
boolean found = recipe.getInput()
.test(IngredientHelper.toItemStack(input));
- if (found) {
+ if (
+ found
+ ) {
addBackup(recipe);
}
return found;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Array recipe").add("could not find recipe with input {}", input).error()
.post();
@@ -86,15 +92,21 @@ public boolean removeByInput(IIngredient input) {
@MethodDescription(example = @Example("item('bloodmagic:slate:2')"))
public boolean removeByCatalyst(IIngredient catalyst) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
recipe -> {
boolean found = recipe.getCatalyst()
.test(IngredientHelper.toItemStack(catalyst));
- if (found) {
+ if (
+ found
+ ) {
addBackup(recipe);
}
return found;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Array recipe").add("could not find recipe with catalyst {}", catalyst)
.error().post();
@@ -103,16 +115,22 @@ public boolean removeByCatalyst(IIngredient catalyst) {
@MethodDescription(example = @Example("item('bloodmagic:component:7'), item('bloodmagic:slate:1')"))
public boolean removeByInputAndCatalyst(IIngredient input, IIngredient catalyst) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
recipe -> {
boolean removeRecipe = recipe.getInput()
.test(IngredientHelper.toItemStack(input)) && recipe.getCatalyst()
.test(IngredientHelper.toItemStack(catalyst));
- if (removeRecipe) {
+ if (
+ removeRecipe
+ ) {
addBackup(recipe);
}
return removeRecipe;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Array recipe").add(
"could not find recipe with input {} and catalyst {}",
@@ -122,15 +140,21 @@ public boolean removeByInputAndCatalyst(IIngredient input, IIngredient catalyst)
@MethodDescription(example = @Example("item('bloodmagic:sigil_void')"))
public boolean removeByOutput(ItemStack output) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyArrayRecipes().removeIf(
recipe -> {
boolean matches = recipe.getOutput()
.isItemEqual(output);
- if (matches) {
+ if (
+ matches
+ ) {
addBackup(recipe);
}
return matches;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Array recipe").add("could not find recipe with output {}", output)
.error().post();
@@ -177,7 +201,9 @@ public RecipeBuilder texture(String texture) {
}
@Override
- public String getErrorMsg() { return "Error adding Blood Magic Alchemy Array recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Alchemy Array recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyTable.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyTable.java
index c214f70d1..89a12ffae 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyTable.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/AlchemyTable.java
@@ -70,22 +70,33 @@ public boolean removeByInput(IIngredient... input) {
@MethodDescription(example = @Example("item('minecraft:nether_wart'), item('minecraft:gunpowder')"))
public boolean removeByInput(NonNullList input) {
// Filters down to only recipes which have inputs that match all the input IIngredients (NOTE: a recipe with ABCD would match an input of AB)
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyRecipes().removeIf(
recipe -> {
boolean removeRecipe = false;
- for (IIngredient match : input) {
+ for (
+ IIngredient match : input
+ ) {
boolean foundInputMatch = false;
- for (Ingredient target : recipe.getInput()) {
- if (target.test(IngredientHelper.toItemStack(match)))
- foundInputMatch = true;
+ for (
+ Ingredient target : recipe.getInput()
+ ) {
+ if (
+ target.test(IngredientHelper.toItemStack(match))
+ ) foundInputMatch = true;
}
removeRecipe = foundInputMatch;
}
- if (removeRecipe) {
+ if (
+ removeRecipe
+ ) {
addBackup(recipe);
}
return removeRecipe;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Table recipe").add(
"could not find recipe with inputs including all of {}",
@@ -95,15 +106,21 @@ public boolean removeByInput(NonNullList input) {
@MethodDescription(example = @Example("item('minecraft:sand')"))
public boolean removeByOutput(ItemStack output) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAlchemyRecipes().removeIf(
recipe -> {
boolean matches = ItemStack.areItemStacksEqual(recipe.getOutput(),
output);
- if (matches) {
+ if (
+ matches
+ ) {
addBackup(recipe);
}
return matches;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Alchemy Table recipe").add("could not find recipe with output {}", output)
.error().post();
return false;
@@ -167,7 +184,9 @@ public RecipeBuilder tier(int tier) {
}
@Override
- public String getErrorMsg() { return "Error adding Blood Magic Alchemy Table recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Alchemy Table recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/BloodAltar.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/BloodAltar.java
index 82d4e4b0c..189576552 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/BloodAltar.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/BloodAltar.java
@@ -61,15 +61,21 @@ public boolean remove(RecipeBloodAltar recipe) {
@MethodDescription(example = @Example("item('minecraft:ender_pearl')"))
public boolean removeByInput(IIngredient input) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAltarRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAltarRecipes().removeIf(
recipe -> {
boolean removeRecipe = recipe.getInput()
.test(IngredientHelper.toItemStack(input));
- if (removeRecipe) {
+ if (
+ removeRecipe
+ ) {
addBackup(recipe);
}
return removeRecipe;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Blood Altar recipe").add("could not find recipe with input {}", input).error()
.post();
@@ -78,15 +84,21 @@ public boolean removeByInput(IIngredient input) {
@MethodDescription(example = @Example("item('bloodmagic:slate:4')"))
public boolean removeByOutput(ItemStack output) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAltarRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getAltarRecipes().removeIf(
recipe -> {
boolean matches = ItemStack.areItemStacksEqual(recipe.getOutput(),
output);
- if (matches) {
+ if (
+ matches
+ ) {
addBackup(recipe);
}
return matches;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Blood Altar recipe").add("could not find recipe with output {}", output).error()
.post();
@@ -147,7 +159,9 @@ public RecipeBuilder drainRate(int drainRate) {
}
@Override
- public String getErrorMsg() { return "Error adding Blood Magic Blood Altar recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Blood Altar recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Meteor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Meteor.java
index 8c835cfd6..8077d9887 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Meteor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Meteor.java
@@ -150,7 +150,9 @@ public RecipeBuilder cost(int cost) {
}
@Override
- public String getErrorMsg() { return "Error adding Blood Magic Alchemy Array recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Alchemy Array recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Sacrificial.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Sacrificial.java
index 650b18e10..4c2ea450d 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Sacrificial.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Sacrificial.java
@@ -135,7 +135,9 @@ public RecipeBuilder value(int value) {
return this;
}
- public String getErrorMsg() { return "Error adding Blood Magic Tranquility key recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Tranquility key recipe";
+ }
public boolean validate() {
GroovyLog.Msg msg = GroovyLog.msg(getErrorMsg()).error();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/TartaricForge.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/TartaricForge.java
index 24d9b3184..9669456f3 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/TartaricForge.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/TartaricForge.java
@@ -80,22 +80,33 @@ public boolean removeByInput(IIngredient... input) {
@MethodDescription
public boolean removeByInput(NonNullList input) {
// Filters down to only recipes which have inputs that match all the input IIngredients (NOTE: a recipe with ABCD would match an input of AB)
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getTartaricForgeRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getTartaricForgeRecipes().removeIf(
recipe -> {
boolean removeRecipe = false;
- for (IIngredient match : input) {
+ for (
+ IIngredient match : input
+ ) {
boolean foundInputMatch = false;
- for (Ingredient target : recipe.getInput()) {
- if (target.test(IngredientHelper.toItemStack(match)))
- foundInputMatch = true;
+ for (
+ Ingredient target : recipe.getInput()
+ ) {
+ if (
+ target.test(IngredientHelper.toItemStack(match))
+ ) foundInputMatch = true;
}
removeRecipe = foundInputMatch;
}
- if (removeRecipe) {
+ if (
+ removeRecipe
+ ) {
addBackup(recipe);
}
return removeRecipe;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Tartaric Forge recipe").add(
"could not find recipe with inputs including all of {}",
@@ -105,15 +116,21 @@ public boolean removeByInput(NonNullList input) {
@MethodDescription(example = @Example("item('bloodmagic:demon_crystal')"))
public boolean removeByOutput(ItemStack output) {
- if (((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getTartaricForgeRecipes().removeIf(
+ if (
+ ((BloodMagicRecipeRegistrarAccessor) BloodMagicAPI.INSTANCE.getRecipeRegistrar()).getTartaricForgeRecipes().removeIf(
recipe -> {
boolean matches = ItemStack.areItemStacksEqual(recipe.getOutput(),
output);
- if (matches) {
+ if (
+ matches
+ ) {
addBackup(recipe);
}
return matches;
- })) { return true; }
+ })
+ ) {
+ return true;
+ }
GroovyLog.msg("Error removing Blood Magic Tartaric Forge recipe").add("could not find recipe with output {}", output)
.error().post();
return false;
@@ -159,7 +176,9 @@ public RecipeBuilder drain(int drain) {
}
@Override
- public String getErrorMsg() { return "Error adding Blood Magic Tartaric Forge recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Tartaric Forge recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Tranquility.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Tranquility.java
index e56aa7999..b79ad4ba4 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Tranquility.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/bloodmagic/Tranquility.java
@@ -105,8 +105,9 @@ public void remove(IBlockState blockstate, String tranquility) {
@MethodDescription(description = "groovyscript.wiki.bloodmagic.tranquility.remove3")
public boolean remove(IBlockState blockstate, EnumTranquilityType tranquility) {
- for (Map.Entry entry : BloodMagicAPI.INSTANCE.getValueManager().getTranquility()
- .entrySet()) {
+ for (
+ Map.Entry entry : BloodMagicAPI.INSTANCE.getValueManager().getTranquility().entrySet()
+ ) {
if (entry.getKey() == blockstate && entry.getValue().type == tranquility) {
TranquilityStack stack = entry.getValue();
addBackup(Pair.of(entry.getKey(), entry.getValue()));
@@ -197,7 +198,9 @@ public RecipeBuilder value(double value) {
return this;
}
- public String getErrorMsg() { return "Error adding Blood Magic Tranquility key recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Blood Magic Tranquility key recipe";
+ }
public boolean validate() {
GroovyLog.Msg msg = GroovyLog.msg(getErrorMsg()).error();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Apothecary.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Apothecary.java
index 6bd1dc0bc..7f506ae1e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Apothecary.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Apothecary.java
@@ -114,7 +114,9 @@ public SimpleObjectStream streamRecipes() {
public class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Botania Apothecary recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Apothecary recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Brew.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Brew.java
index 2de01c5a2..a501fa54f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Brew.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Brew.java
@@ -156,7 +156,9 @@ public BrewBuilder effect(Collection effects) {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Brew"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Brew";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/BrewRecipe.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/BrewRecipe.java
index c80ec3014..31565a498 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/BrewRecipe.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/BrewRecipe.java
@@ -116,7 +116,9 @@ public RecipeBuilder brew(vazkii.botania.api.brew.Brew brew) {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Brew recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Brew recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ElvenTrade.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ElvenTrade.java
index 037f82338..b06a3a2f4 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ElvenTrade.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ElvenTrade.java
@@ -110,7 +110,9 @@ public SimpleObjectStream streamRecipes() {
public class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Botania Elven Trade recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Elven Trade recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Lexicon.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Lexicon.java
index 9522f9598..8d0881394 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Lexicon.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/Lexicon.java
@@ -417,7 +417,9 @@ public EntryBuilder extraRecipe(IIngredient stack) {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Lexicon Entry"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Lexicon Entry";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ManaInfusion.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ManaInfusion.java
index 77c8daea4..17d7ae7c7 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ManaInfusion.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/ManaInfusion.java
@@ -135,7 +135,9 @@ public RecipeBuilder useConjuration() {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Mana Infusion recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Mana Infusion recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/PureDaisy.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/PureDaisy.java
index bb766b70f..f82c8f376 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/PureDaisy.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/PureDaisy.java
@@ -161,7 +161,9 @@ public RecipeBuilder input(OreDictIngredient input) {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Pure Daisy recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Pure Daisy recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/RuneAltar.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/RuneAltar.java
index 3db12561d..deb94672c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/RuneAltar.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/RuneAltar.java
@@ -119,7 +119,9 @@ public RecipeBuilder mana(int amount) {
}
@Override
- public String getErrorMsg() { return "Error adding Botania Rune Altar recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Botania Rune Altar recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/recipe/MagnetSubject.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/recipe/MagnetSubject.java
index 06007865f..18bc9c7bd 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/recipe/MagnetSubject.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/botania/recipe/MagnetSubject.java
@@ -23,7 +23,9 @@ public MagnetSubject(Block block, int meta) {
this.item = null;
}
- public boolean isBlock() { return block != null; }
+ public boolean isBlock() {
+ return block != null;
+ }
public String getMagnetKey() {
return isBlock() ? BotaniaAPIAccessor.invokeGetMagnetKey(block, meta) : BotaniaAPIAccessor.invokeGetMagnetKey(item
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AlgorithmSeparator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AlgorithmSeparator.java
index c41447ab5..5c0695c2a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AlgorithmSeparator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AlgorithmSeparator.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Algorithm Separator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Algorithm Separator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AnalysingChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AnalysingChamber.java
index 35eb9e2e9..176fb4401 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AnalysingChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AnalysingChamber.java
@@ -123,7 +123,9 @@ public RecipeBuilder location(int location) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Analysing Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Analysing Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AtomicCalculator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AtomicCalculator.java
index 516fe5011..e7fe0ff3d 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AtomicCalculator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/AtomicCalculator.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Atomic Calculator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Atomic Calculator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/BasicCalculator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/BasicCalculator.java
index 52b4060d1..fe5fdca71 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/BasicCalculator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/BasicCalculator.java
@@ -95,7 +95,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Basic Calculator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Basic Calculator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ConductorMast.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ConductorMast.java
index 8f7dfd6df..322bac2af 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ConductorMast.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ConductorMast.java
@@ -99,7 +99,9 @@ public RecipeBuilder value(int value) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Conductor Mast Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Conductor Mast Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ExtractionChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ExtractionChamber.java
index 22df33fb2..3d2bcfd79 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ExtractionChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ExtractionChamber.java
@@ -107,7 +107,9 @@ public RecipeBuilder isDamaged(boolean isDamaged) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Extraction Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Extraction Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FabricationChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FabricationChamber.java
index 0897cc5a2..144fd1ffe 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FabricationChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FabricationChamber.java
@@ -99,7 +99,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Fabrication Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Fabrication Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FlawlessCalculator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FlawlessCalculator.java
index 268d84c86..887b1866e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FlawlessCalculator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/FlawlessCalculator.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Flawless Calculator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Flawless Calculator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/GlowstoneExtractor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/GlowstoneExtractor.java
index 3be78d4c2..e050cb96a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/GlowstoneExtractor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/GlowstoneExtractor.java
@@ -84,7 +84,9 @@ public RecipeBuilder value(int value) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Glowstone Extractor Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Glowstone Extractor Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/HealthProcessor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/HealthProcessor.java
index dc7daf807..db5fc231b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/HealthProcessor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/HealthProcessor.java
@@ -84,7 +84,9 @@ public RecipeBuilder value(int value) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Health Processor Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Health Processor Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/PrecisionChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/PrecisionChamber.java
index ad6cfd476..6ae9aa003 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/PrecisionChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/PrecisionChamber.java
@@ -91,7 +91,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Precision Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Precision Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ProcessingChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ProcessingChamber.java
index 4155075e9..9b531a9fd 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ProcessingChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ProcessingChamber.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Processing Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Processing Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ReassemblyChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ReassemblyChamber.java
index 597df884a..d5cbb95ef 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ReassemblyChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ReassemblyChamber.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Reassembly Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Reassembly Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RedstoneExtractor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RedstoneExtractor.java
index 0b4835b2a..a08f4d4a6 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RedstoneExtractor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RedstoneExtractor.java
@@ -84,7 +84,9 @@ public RecipeBuilder value(int value) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Redstone Extractor Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Redstone Extractor Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RestorationChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RestorationChamber.java
index fb54f5d3a..2386017b1 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RestorationChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/RestorationChamber.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Restoration Chamber Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Restoration Chamber Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ScientificCalculator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ScientificCalculator.java
index 386613ffc..621343432 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ScientificCalculator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/ScientificCalculator.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Scientific Calculator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Scientific Calculator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StarchExtractor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StarchExtractor.java
index e84e4d57b..dbbd665b5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StarchExtractor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StarchExtractor.java
@@ -84,7 +84,9 @@ public RecipeBuilder value(int value) {
}
@Override
- public String getErrorMsg() { return "Error adding Calculator Starch Extractor Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Starch Extractor Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StoneSeparator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StoneSeparator.java
index 512761a81..343945636 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StoneSeparator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/calculator/StoneSeparator.java
@@ -90,7 +90,9 @@ public SimpleObjectStream streamRecipes() {
public static class RecipeBuilder extends AbstractRecipeBuilder {
@Override
- public String getErrorMsg() { return "Error adding Calculator Stone Separator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Calculator Stone Separator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/chisel/Carving.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/chisel/Carving.java
index f72d46eea..78a1b3481 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/chisel/Carving.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/chisel/Carving.java
@@ -62,7 +62,9 @@ public void addVariation(String groupName, ItemStack item) {
try {
getRegistry().addVariation(groupName, CarvingUtils.variationFor(item, 0));
addScripted(Pair.of(groupName, item));
- } catch (UnsupportedOperationException e) {
+ } catch (
+ UnsupportedOperationException e
+ ) {
GroovyLog.msg("Error adding a Chisel Carving variation").add("you cannot add variations to Oredict chisel groups {}",
groupName).add(
"instead, edit the oredict via `oredict.add('{}', {})`",
@@ -79,7 +81,9 @@ public void removeVariation(String groupName, ItemStack item) {
try {
getRegistry().removeVariation(item, groupName);
addBackup(Pair.of(groupName, item));
- } catch (UnsupportedOperationException e) {
+ } catch (
+ UnsupportedOperationException e
+ ) {
GroovyLog.msg("Error removing a Chisel Carving variation").add(
"you cannot remove variations to Oredict chisel groups {}",
groupName).add(
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/compactmachines/Miniaturization.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/compactmachines/Miniaturization.java
index 698e7cbf2..9a1d39ae8 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/compactmachines/Miniaturization.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/compactmachines/Miniaturization.java
@@ -48,10 +48,12 @@ public boolean remove(org.dave.compactmachines3.miniaturization.MultiblockRecipe
@MethodDescription(example = @Example("item('minecraft:ender_pearl')"))
public void removeByInput(ItemStack input) {
- for (org.dave.compactmachines3.miniaturization.MultiblockRecipe recipe : MultiblockRecipes.getRecipes().stream().filter(
- r -> r.getCatalystStack()
- .isItemEqual(input))
- .collect(Collectors.toList())) {
+ for (
+ org.dave.compactmachines3.miniaturization.MultiblockRecipe recipe : MultiblockRecipes.getRecipes().stream().filter(
+ r -> r.getCatalystStack()
+ .isItemEqual(input))
+ .collect(Collectors.toList())
+ ) {
addBackup(recipe);
MultiblockRecipes.getRecipes().removeIf(r -> r == recipe);
}
@@ -64,10 +66,12 @@ public void removeByCatalyst(ItemStack catalyst) {
@MethodDescription(example = @Example("item('compactmachines3:machine:3')"))
public void removeByOutput(ItemStack output) {
- for (org.dave.compactmachines3.miniaturization.MultiblockRecipe recipe : MultiblockRecipes.getRecipes().stream().filter(
- r -> r.getTargetStack()
- .isItemEqual(output))
- .collect(Collectors.toList())) {
+ for (
+ org.dave.compactmachines3.miniaturization.MultiblockRecipe recipe : MultiblockRecipes.getRecipes().stream().filter(
+ r -> r.getTargetStack()
+ .isItemEqual(output))
+ .collect(Collectors.toList())
+ ) {
addBackup(recipe);
MultiblockRecipes.getRecipes().removeIf(r -> r == recipe);
}
@@ -173,7 +177,9 @@ public RecipeBuilder duration(int duration) {
}
@Override
- public String getErrorMsg() { return "Error adding Compact Machines Multiblock recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Compact Machines Multiblock recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -240,13 +246,21 @@ public ReferenceValues(IBlockState state, NBTTagCompound nbt, boolean ignoreMeta
this.reference = reference;
}
- public IBlockState getState() { return state; }
+ public IBlockState getState() {
+ return state;
+ }
- public NBTTagCompound getNbt() { return nbt; }
+ public NBTTagCompound getNbt() {
+ return nbt;
+ }
- public boolean isIgnoreMeta() { return ignoreMeta; }
+ public boolean isIgnoreMeta() {
+ return ignoreMeta;
+ }
- public ItemStack getReference() { return reference; }
+ public ItemStack getReference() {
+ return reference;
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/EnergyCore.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/EnergyCore.java
index c74ea99ba..0352493cc 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/EnergyCore.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/EnergyCore.java
@@ -44,10 +44,14 @@ private void init() {
}
@Override
- public boolean isEnabled() { return GroovyScriptConfig.compat.draconicEvolutionEnergyCore; }
+ public boolean isEnabled() {
+ return GroovyScriptConfig.compat.draconicEvolutionEnergyCore;
+ }
@Override
- public Collection getAliases() { return Alias.generateOfClass(EnergyCore.class); }
+ public Collection getAliases() {
+ return Alias.generateOfClass(EnergyCore.class);
+ }
@Override
public void onReload() {
@@ -64,7 +68,9 @@ public void onReload() {
public void afterScriptLoad() {}
@GroovyBlacklist
- public int getVersion() { return version; }
+ public int getVersion() {
+ return version;
+ }
@GroovyBlacklist @ApiStatus.Internal
public void applyEdit(BlockStateMultiblockStorage[] mbs) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/Fusion.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/Fusion.java
index 6f907c9d7..34a8f6be8 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/Fusion.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/Fusion.java
@@ -48,9 +48,11 @@ public boolean remove(IFusionRecipe recipe) {
@MethodDescription(example = @Example("item('draconicevolution:chaos_shard')"))
public void removeByCatalyst(ItemStack item) {
- for (IFusionRecipe recipe : RecipeManager.FUSION_REGISTRY.getRecipes().stream().filter(x -> x.getRecipeCatalyst()
- .isItemEqual(item)).collect(
- Collectors.toList())) {
+ for (
+ IFusionRecipe recipe : RecipeManager.FUSION_REGISTRY.getRecipes().stream().filter(x -> x.getRecipeCatalyst()
+ .isItemEqual(item)).collect(
+ Collectors.toList())
+ ) {
remove(recipe);
}
}
@@ -121,7 +123,9 @@ public RecipeBuilder tierChaotic() {
}
@Override
- public String getErrorMsg() { return "Error adding Draconic Evolution Fusion recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Draconic Evolution Fusion recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/GroovyFusionRecipe.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/GroovyFusionRecipe.java
index cb28e27a4..ca3d01c34 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/GroovyFusionRecipe.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/GroovyFusionRecipe.java
@@ -51,21 +51,31 @@ public boolean isRecipeCatalyst(ItemStack itemStack) {
}
@Override
- public List getRecipeIngredients() { return this.displayItems; }
+ public List getRecipeIngredients() {
+ return this.displayItems;
+ }
@Override
- public int getRecipeTier() { return craftingTier; }
+ public int getRecipeTier() {
+ return craftingTier;
+ }
@Override
- public ItemStack getRecipeCatalyst() { return catalyst; }
+ public ItemStack getRecipeCatalyst() {
+ return catalyst;
+ }
@Override
- public long getIngredientEnergyCost() { return energyCost; }
+ public long getIngredientEnergyCost() {
+ return energyCost;
+ }
@Override
public boolean matches(IFusionCraftingInventory inventory, World world, BlockPos blockPos) {
ItemStack coreStack = inventory.getStackInCore(0);
- if (coreStack.isEmpty() || !isRecipeCatalyst(coreStack) || coreStack.getCount() < catalyst.getCount()) { return false; }
+ if (coreStack.isEmpty() || !isRecipeCatalyst(coreStack) || coreStack.getCount() < catalyst.getCount()) {
+ return false;
+ }
List injectors = new ArrayList<>(inventory.getInjectors());
int found = 0;
@@ -74,8 +84,10 @@ public boolean matches(IFusionCraftingInventory inventory, World world, BlockPos
Iterator it = injectors.iterator();
while (it.hasNext()) {
ICraftingInjector craftingInjector = it.next();
- if (ingredient.test(craftingInjector.getStackInPedestal()) && ingredient.getAmount() <= craftingInjector.getStackInPedestal()
- .getCount()) {
+ if (
+ ingredient.test(craftingInjector.getStackInPedestal()) && ingredient.getAmount() <= craftingInjector.getStackInPedestal()
+ .getCount()
+ ) {
found++;
it.remove();
break;
@@ -127,13 +139,17 @@ public void onCraftingTick(IFusionCraftingInventory iFusionCraftingInventory, Wo
@Override
public String canCraft(IFusionCraftingInventory inventory, World world, BlockPos blockPos) {
- if (!inventory.getStackInCore(1).isEmpty()) { return "outputObstructed"; }
+ if (!inventory.getStackInCore(1).isEmpty()) {
+ return "outputObstructed";
+ }
Iterator it = inventory.getInjectors().iterator();
ICraftingInjector pedestal;
do {
- if (!it.hasNext()) { return "true"; }
+ if (!it.hasNext()) {
+ return "true";
+ }
pedestal = it.next();
} while (pedestal.getStackInPedestal().isEmpty() || pedestal.getPedestalTier() >= this.craftingTier);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateEnergyCoreStructure.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateEnergyCoreStructure.java
index 05d0cc2e9..ff1e7ca56 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateEnergyCoreStructure.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateEnergyCoreStructure.java
@@ -64,7 +64,9 @@ public BlockStateEnergyCoreStructure(TileEnergyStorageCore core) {
structureTiers[7] = buildTierOMG();
}
- public BlockStateMultiblockHelper getHelper() { return helper; }
+ public BlockStateMultiblockHelper getHelper() {
+ return helper;
+ }
public boolean checkVersion() {
if (version != ModSupport.DRACONIC_EVOLUTION.get().energyCore.getVersion()) {
@@ -198,7 +200,9 @@ private void renderBuildGuide(BlockStates states, World world, BlockPos pos, Blo
IBlockState atState = world.getBlockState(pos);
boolean invalid = !world.isAirBlock(pos) && !states.matches(atState, false);
- if (dist + 2 > pDist && !invalid) { return; }
+ if (dist + 2 > pDist && !invalid) {
+ return;
+ }
BlockPos translation = new BlockPos(pos.getX() - startPos.getX(), pos.getY() - startPos.getY(), pos.getZ() - startPos
.getZ());
@@ -278,7 +282,9 @@ public void setBlock(BlockStates states, World world, BlockPos pos) {
}
}
- public BlockStateMultiblockStorage[] getStructureTiers() { return structureTiers; }
+ public BlockStateMultiblockStorage[] getStructureTiers() {
+ return structureTiers;
+ }
private BlockStateMultiblockStorage buildTier1() {
BlockStateMultiblockStorage storage = new BlockStateMultiblockStorage(1, helper, this);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateMultiblockStorage.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateMultiblockStorage.java
index c0e4351de..12cf52772 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateMultiblockStorage.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/draconicevolution/helpers/BlockStateMultiblockStorage.java
@@ -69,7 +69,9 @@ public void mirrorHalf() {
public void newLayer() {
xPos = 0;
yPos++;
- if (this.yPos >= size) { throw new RuntimeException("[MultiBlockStorage] Attempt to add too many layers to structure"); }
+ if (this.yPos >= size) {
+ throw new RuntimeException("[MultiBlockStorage] Attempt to add too many layers to structure");
+ }
}
@Override
@@ -116,9 +118,15 @@ public void forEachBlockStates(BlockPos startPos, BiConsumer find(ItemStack output) {
private void removeInternal(Collection recipes) {
AlloyRecipeManagerAccessor accessor = (AlloyRecipeManagerAccessor) AlloyRecipeManager.getInstance();
@SuppressWarnings("unchecked") Int2ObjectOpenHashMap, ItemRecipeNode>>> map = ((ItemRecipeNodeAccessor>>) ((TriItemLookupAccessor) accessor.getLookup()).getRoot()).getMap();
- for (NNPair, ItemRecipeNode>> pair : map.values()) {
+ for (
+ NNPair, ItemRecipeNode>> pair : map.values()
+ ) {
Iterator listIter = pair.left.iterator();
while (listIter.hasNext()) {
if (recipes.contains(listIter.next())) {
@@ -150,7 +152,9 @@ public SimpleObjectStream streamRecipes() {
public void removeAll() {
AlloyRecipeManagerAccessor accessor = (AlloyRecipeManagerAccessor) AlloyRecipeManager.getInstance();
@SuppressWarnings("unchecked") Int2ObjectOpenHashMap, ItemRecipeNode>>> map = ((ItemRecipeNodeAccessor>>) ((TriItemLookupAccessor) accessor.getLookup()).getRoot()).getMap();
- for (NNPair, ItemRecipeNode>> pair : map.values()) {
+ for (
+ NNPair, ItemRecipeNode>> pair : map.values()
+ ) {
Iterator listIter = pair.left.iterator();
while (listIter.hasNext()) {
addBackup(listIter.next());
@@ -176,7 +180,9 @@ public RecipeBuilder xp(float xp) {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Alloy Smelter recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Alloy Smelter recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Enchanter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Enchanter.java
index b24e7cecb..d8ecde3b8 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Enchanter.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Enchanter.java
@@ -66,8 +66,9 @@ public void remove(Enchantment enchantment) {
return;
}
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.ENCHANTER)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.ENCHANTER).values()
+ ) {
if (recipe instanceof EnchanterRecipe && enchantment == ((EnchanterRecipe) recipe).getEnchantment()) {
recipes.add((EnchanterRecipe) recipe);
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMill.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMill.java
index 7da4a0a05..65a12f555 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMill.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMill.java
@@ -121,7 +121,9 @@ public RecipeBuilder bonusTypeChance() {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Sag Mill recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Sag Mill recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMillGrinding.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMillGrinding.java
index 20bd2a861..ee428e30e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMillGrinding.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SagMillGrinding.java
@@ -106,7 +106,9 @@ public RecipeBuilder duration(int duration) {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Sag Mill Grinding Ball entry"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Sag Mill Grinding Ball entry";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SliceNSplice.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SliceNSplice.java
index e657d9681..607be643b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SliceNSplice.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SliceNSplice.java
@@ -130,7 +130,9 @@ public RecipeBuilder energy(int energy) {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Slice'n'Splice recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Slice'n'Splice recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SoulBinder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SoulBinder.java
index 42890ce5b..42b4b05aa 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SoulBinder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/SoulBinder.java
@@ -52,8 +52,9 @@ public boolean remove(ISoulBinderRecipe recipe) {
@MethodDescription(description = "groovyscript.wiki.removeByOutput", example = @Example("item('enderio:item_material:17')"))
public void remove(ItemStack output) {
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.SOULBINDER)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.SOULBINDER).values()
+ ) {
if (OreDictionary.itemMatches(output, ((ISoulBinderRecipe) recipe).getOutputStack(), false)) {
recipes.add((ISoulBinderRecipe) recipe);
}
@@ -169,7 +170,9 @@ public RecipeBuilder energy(int energy) {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Soul Binder recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Soul Binder recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -190,8 +193,7 @@ public void validate(GroovyLog.Msg msg) {
if (!validate()) return null;
BasicSoulBinderRecipe recipe = new BasicSoulBinderRecipe(input.get(0).getMatchingStacks()[0], output.get(0), energy,
xp, name, RecipeLevel.IGNORE, entities,
- new BasicSoulBinderRecipe.OutputFilter()
- {});
+ new BasicSoulBinderRecipe.OutputFilter() {});
ModSupport.ENDER_IO.get().soulBinder.add(recipe);
return recipe;
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Tank.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Tank.java
index 608538251..1831bb327 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Tank.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Tank.java
@@ -103,8 +103,10 @@ public void removeFill(ItemStack input, FluidStack fluid) {
if (msg.postIfNotEmpty()) return;
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_FILLING)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_FILLING)
+ .values()
+ ) {
TankMachineRecipe tankMachineRecipe = (TankMachineRecipe) recipe;
if (tankMachineRecipe.getFluid().isFluidEqual(fluid) && tankMachineRecipe.getInput().contains(input)) {
recipes.add(tankMachineRecipe);
@@ -128,8 +130,10 @@ public void removeFill(FluidStack fluid, ItemStack output) {
if (msg.postIfNotEmpty()) return;
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_FILLING)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_FILLING)
+ .values()
+ ) {
TankMachineRecipe tankMachineRecipe = (TankMachineRecipe) recipe;
if (tankMachineRecipe.getFluid().isFluidEqual(fluid) && tankMachineRecipe.getOutput().contains(output)) {
recipes.add(tankMachineRecipe);
@@ -154,8 +158,10 @@ public void removeDrain(ItemStack input, FluidStack fluid) {
if (msg.postIfNotEmpty()) return;
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_EMPTYING)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_EMPTYING)
+ .values()
+ ) {
TankMachineRecipe tankMachineRecipe = (TankMachineRecipe) recipe;
if (tankMachineRecipe.getFluid().isFluidEqual(fluid) && tankMachineRecipe.getInput().contains(input)) {
recipes.add(tankMachineRecipe);
@@ -179,8 +185,10 @@ public void removeDrain(FluidStack fluid, ItemStack output) {
if (msg.postIfNotEmpty()) return;
List recipes = new ArrayList<>();
- for (IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_EMPTYING)
- .values()) {
+ for (
+ IMachineRecipe recipe : MachineRecipeRegistry.instance.getRecipesForMachine(MachineRecipeRegistry.TANK_EMPTYING)
+ .values()
+ ) {
TankMachineRecipe tankMachineRecipe = (TankMachineRecipe) recipe;
if (tankMachineRecipe.getFluid().isFluidEqual(fluid) && tankMachineRecipe.getOutput().contains(output)) {
recipes.add(tankMachineRecipe);
@@ -248,10 +256,14 @@ public RecipeBuilder drain() {
}
@Override
- public String getErrorMsg() { return "Error adding EnderIO Tank recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EnderIO Tank recipe";
+ }
@Override
- public String getRecipeNamePrefix() { return "groovyscript_enderio_tank_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_enderio_tank_";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Vat.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Vat.java
index b3f092af3..ae7a7116e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Vat.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/Vat.java
@@ -210,6 +210,8 @@ public VatRecipeInput(IIngredient ing, int slot, float multiplier) {
}
@Override
- public float getMulitplier() { return multiplier; }
+ public float getMulitplier() {
+ return multiplier;
+ }
}
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/CustomEnchanterRecipe.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/CustomEnchanterRecipe.java
index cb5f76871..f6c739c5f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/CustomEnchanterRecipe.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/CustomEnchanterRecipe.java
@@ -29,10 +29,14 @@ public CustomEnchanterRecipe(@NotNull IIngredient input, int stackSizePerLevel,
}
@NotNull @Override
- public Things getLapis() { return lapis; }
+ public Things getLapis() {
+ return lapis;
+ }
@NotNull @Override
- public Things getBook() { return book; }
+ public Things getBook() {
+ return book;
+ }
@Override
public boolean isRecipe(@Nonnull RecipeLevel machineLevel, @Nonnull NNList inputs) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/ManyToOneRecipe.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/ManyToOneRecipe.java
index 13b77996e..a664ea435 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/ManyToOneRecipe.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/ManyToOneRecipe.java
@@ -20,7 +20,9 @@ public ManyToOneRecipe(RecipeOutput output, int energyRequired, RecipeBonusType
super(output, energyRequired, bonusType, level, input);
}
- public RecipeOutput getOutput() { return getOutputs()[0]; }
+ public RecipeOutput getOutput() {
+ return getOutputs()[0];
+ }
@Override
public boolean isInputForRecipe(NNList machineInputs) {
@@ -43,9 +45,13 @@ public boolean isValidInput(@NotNull FluidStack fluid) {
@Override
public boolean isValidInput(int slot, @NotNull ItemStack item) {
IRecipeInput input = getInputs()[slot];
- if ((input.getSlotNumber() < 0 || input.getSlotNumber() == slot) && input.isInput(item)) { return true; }
+ if ((input.getSlotNumber() < 0 || input.getSlotNumber() == slot) && input.isInput(item)) {
+ return true;
+ }
for (IRecipeInput input1 : getInputs()) {
- if ((input1.getSlotNumber() < 0 || input1.getSlotNumber() == slot) && input1.isInput(item)) { return true; }
+ if ((input1.getSlotNumber() < 0 || input1.getSlotNumber() == slot) && input1.isInput(item)) {
+ return true;
+ }
}
return false;
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/RecipeInput.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/RecipeInput.java
index ad5738737..8d80c6658 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/RecipeInput.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/enderio/recipe/RecipeInput.java
@@ -34,7 +34,9 @@ public IRecipeInput copy() {
}
@Override
- public boolean isFluid() { return ing instanceof FluidStack; }
+ public boolean isFluid() {
+ return ing instanceof FluidStack;
+ }
@Nonnull @Override
public ItemStack getInput() {
@@ -42,13 +44,19 @@ public ItemStack getInput() {
}
@Override
- public FluidStack getFluidInput() { return ing instanceof FluidStack ? ((FluidStack) ing).copy() : null; }
+ public FluidStack getFluidInput() {
+ return ing instanceof FluidStack ? ((FluidStack) ing).copy() : null;
+ }
@Override
- public float getMulitplier() { return 1; }
+ public float getMulitplier() {
+ return 1;
+ }
@Override
- public int getSlotNumber() { return slot; }
+ public int getSlotNumber() {
+ return slot;
+ }
@Override
public boolean isInput(@Nonnull ItemStack test) {
@@ -69,7 +77,9 @@ public ItemStack[] getEquivelentInputs() {
}
@Override
- public boolean isValid() { return true; }
+ public boolean isValid() {
+ return true;
+ }
@Override
public void shrinkStack(int count) {
@@ -77,6 +87,8 @@ public void shrinkStack(int count) {
}
@Override
- public int getStackSize() { return ing.getAmount(); }
+ public int getStackSize() {
+ return ing.getAmount();
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
index 59882678c..e2e2cdf3f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagicianTable.java
@@ -69,7 +69,9 @@ public RecipeBuilder mru(int cost) {
}
@Override
- public String getErrorMsg() { return "Error adding Magician Table Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Magician Table Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
index e3753eb8a..516ed944d 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MagmaticSmeltery.java
@@ -106,7 +106,9 @@ public MagmaticSmeltery.RecipeBuilder factor(int factor) {
return this;
}
- public String getErrorMsg() { return "Error adding Magmatic Smeltery Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Magmatic Smeltery Recipe";
+ }
public void validate(GroovyLog.Msg msg) {
msg.add(OreSmeltingRecipe.RECIPE_MAP.containsKey(input),
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
index 681dbd062..661595177 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/MithrilineFurnace.java
@@ -80,7 +80,9 @@ public RecipeBuilder espe(int cost) {
}
@Override
- public String getErrorMsg() { return "Error adding Mithriline Furnace Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Mithriline Furnace Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java
index a440e13c6..3d6076256 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/RadiatingChamber.java
@@ -96,7 +96,9 @@ public RadiatingChamber.RecipeBuilder upperBalance(float upperBalance) {
}
@Override
- public String getErrorMsg() { return "Error adding Magician Table Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Magician Table Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/WindRune.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/WindRune.java
index 4cb1b522e..9da7485c7 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/WindRune.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/essentialcraft/WindRune.java
@@ -80,7 +80,9 @@ public RecipeBuilder espe(int cost) {
}
@Override
- public String getErrorMsg() { return "Error adding Wind Rune Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Wind Rune Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/BloodInfuser.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/BloodInfuser.java
index 195392770..e1fdd5086 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/BloodInfuser.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/BloodInfuser.java
@@ -25,7 +25,9 @@ public class BloodInfuser extends
VirtualizedRegistry> {
@Override
- public boolean isEnabled() { return Configs.isEnabled(BloodInfuserConfig.class); }
+ public boolean isEnabled() {
+ return Configs.isEnabled(BloodInfuserConfig.class);
+ }
@RecipeBuilderDescription(example = {@Example(".input(item('minecraft:clay')).output(item('minecraft:clay')).fluidInput(fluid('evilcraftblood') * 1000).tier(3).duration(100).xp(10000)"),
@Example(".input(item('minecraft:gold_ingot')).output(item('minecraft:clay')).fluidInput(100000)"),
@@ -138,7 +140,9 @@ public RecipeBuilder fluidInput(int amount) {
}
@Override
- public String getErrorMsg() { return "Error adding EvilCraft Blood Infuser Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EvilCraft Blood Infuser Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/EnvironmentalAccumulator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/EnvironmentalAccumulator.java
index 8400232be..ef0fa6e45 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/EnvironmentalAccumulator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/evilcraft/EnvironmentalAccumulator.java
@@ -24,7 +24,9 @@ public class EnvironmentalAccumulator extends
VirtualizedRegistry> {
@Override
- public boolean isEnabled() { return Configs.isEnabled(EnvironmentalAccumulatorConfig.class); }
+ public boolean isEnabled() {
+ return Configs.isEnabled(EnvironmentalAccumulatorConfig.class);
+ }
@RecipeBuilderDescription(example = {@Example(".input(item('minecraft:clay')).output(item('minecraft:clay') * 2).inputWeather(weather('clear')).outputWeather(weather('rain')).processingspeed(1).cooldowntime(1000).duration(10)"),
@Example(".input(item('minecraft:gold_ingot')).output(item('minecraft:diamond')).inputWeather(weather('rain')).outputWeather(weather('lightning')).speed(10).cooldown(1)"),
@@ -167,7 +169,9 @@ public RecipeBuilder outputWeather(WeatherType outputWeather) {
}
@Override
- public String getErrorMsg() { return "Error adding EvilCraft Environmental Accumulator Recipe"; }
+ public String getErrorMsg() {
+ return "Error adding EvilCraft Environmental Accumulator Recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CombinationCrafting.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CombinationCrafting.java
index 65e1d3cc3..600da0e2e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CombinationCrafting.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CombinationCrafting.java
@@ -173,7 +173,9 @@ public RecipeBuilder pedestals(IIngredient... pedestals) {
}
@Override
- public String getErrorMsg() { return "Error adding Extended Crafting Combination Crafting recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extended Crafting Combination Crafting recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CompressionCrafting.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CompressionCrafting.java
index 9b0eb4635..361374c55 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CompressionCrafting.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/CompressionCrafting.java
@@ -169,7 +169,9 @@ public RecipeBuilder powerRate(int powerRate) {
}
@Override
- public String getErrorMsg() { return "Error adding Extended Crafting Compression Crafting recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extended Crafting Compression Crafting recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/EnderRecipeBuilder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/EnderRecipeBuilder.java
index 87eb490ab..6be775c04 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/EnderRecipeBuilder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/EnderRecipeBuilder.java
@@ -38,7 +38,9 @@ public Shaped() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_ender_shaped_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_ender_shaped_";
+ }
@Override @RecipeBuilderMethodDescription
public Shaped time(int time) {
@@ -105,7 +107,9 @@ public Shapeless() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_ender_shapeless_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_ender_shapeless_";
+ }
@Override @RecipeBuilderMethodDescription
public Shapeless time(int time) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/TableRecipeBuilder.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/TableRecipeBuilder.java
index 242d011bc..c90f86883 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/TableRecipeBuilder.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extendedcrafting/TableRecipeBuilder.java
@@ -54,7 +54,9 @@ public Shaped() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_table_shaped_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_table_shaped_";
+ }
@Override @RecipeBuilderMethodDescription
public TableRecipeBuilder.Shaped tier(int tier) {
@@ -116,7 +118,9 @@ public Shapeless() {
}
@Override
- public String getRecipeNamePrefix() { return "groovyscript_table_shapeless_"; }
+ public String getRecipeNamePrefix() {
+ return "groovyscript_table_shapeless_";
+ }
@Override @RecipeBuilderMethodDescription
public TableRecipeBuilder.Shapeless tier(int tier) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Crusher.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Crusher.java
index ddcebfc78..29803347a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Crusher.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Crusher.java
@@ -44,8 +44,10 @@ public boolean remove(IMachineRecipe recipe) {
public boolean removeByInput(IIngredient input) {
List agony = new ArrayList<>();
for (IMachineRecipe recipe : XUMachineCrusher.INSTANCE.recipes_registry) {
- if (recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineCrusher.INPUT).stream()).anyMatch(
- input)) {
+ if (
+ recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineCrusher.INPUT).stream()).anyMatch(
+ input)
+ ) {
agony.add(recipe);
}
}
@@ -114,7 +116,9 @@ public RecipeBuilder chance(float chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Extra Utilities 2 Crusher recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extra Utilities 2 Crusher recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Enchanter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Enchanter.java
index bb2a83480..e1c311332 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Enchanter.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Enchanter.java
@@ -43,8 +43,10 @@ public boolean remove(IMachineRecipe recipe) {
public boolean removeByInput(IIngredient input) {
List agony = new ArrayList<>();
for (IMachineRecipe recipe : XUMachineEnchanter.INSTANCE.recipes_registry) {
- if (recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineEnchanter.INPUT).stream())
- .anyMatch(input)) {
+ if (
+ recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineEnchanter.INPUT).stream())
+ .anyMatch(input)
+ ) {
agony.add(recipe);
}
}
@@ -104,7 +106,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Extra Utilities 2 Enchanter recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extra Utilities 2 Enchanter recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Furnace.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Furnace.java
index 74a6a65f7..a3395688e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Furnace.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Furnace.java
@@ -46,8 +46,10 @@ public boolean remove(IMachineRecipe recipe) {
public boolean removeByInput(IIngredient input) {
List agony = new ArrayList<>();
for (IMachineRecipe recipe : XUMachineFurnace.INSTANCE.recipes_registry) {
- if (recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineFurnace.INPUT).stream()).anyMatch(
- input)) {
+ if (
+ recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineFurnace.INPUT).stream()).anyMatch(
+ input)
+ ) {
agony.add(recipe);
}
}
@@ -105,7 +107,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Extra Utilities 2 Furnace recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extra Utilities 2 Furnace recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Generator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Generator.java
index 95fbb28c5..8713c374b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Generator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Generator.java
@@ -86,8 +86,10 @@ public boolean remove(ResourceLocation name, IMachineRecipe recipe) {
public boolean remove(Machine machine, ItemStack input) {
List agony = new ArrayList<>();
for (IMachineRecipe recipe : machine.recipes_registry) {
- if (recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineGenerators.INPUT_ITEM).stream())
- .anyMatch(input::isItemEqual)) {
+ if (
+ recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getKey().get(XUMachineGenerators.INPUT_ITEM).stream())
+ .anyMatch(input::isItemEqual)
+ ) {
agony.add(recipe);
}
}
@@ -118,8 +120,10 @@ public boolean remove(ResourceLocation name, ItemStack input) {
public boolean remove(Machine machine, FluidStack input) {
List agony = new ArrayList<>();
for (IMachineRecipe recipe : machine.recipes_registry) {
- if (recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getValue().get(XUMachineGenerators.INPUT_FLUID).stream())
- .anyMatch(input::isFluidEqual)) {
+ if (
+ recipe.getJEIInputItemExamples().stream().flatMap(x -> x.getValue().get(XUMachineGenerators.INPUT_FLUID).stream())
+ .anyMatch(input::isFluidEqual)
+ ) {
agony.add(recipe);
}
}
@@ -284,7 +288,9 @@ public RecipeBuilder energyPerTick(int energyPerTick) {
}
@Override
- public String getErrorMsg() { return "Error adding Extra Utilities 2 Generator recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extra Utilities 2 Generator recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Resonator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Resonator.java
index e728ffc75..0efad5a38 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Resonator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/extrautils2/Resonator.java
@@ -164,7 +164,9 @@ public RecipeBuilder rainbow() {
Collection s = freq.getSubTypes(TileRainbowGenerator.rainbowGenerators);
if (s != null) {
for (TileRainbowGenerator power : s) {
- if (power.providing) { return true; }
+ if (power.providing) {
+ return true;
+ }
}
}
}
@@ -176,7 +178,9 @@ public RecipeBuilder rainbow() {
@Override
- public String getErrorMsg() { return "Error adding Extra Utilities 2 Resonator recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Extra Utilities 2 Resonator recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
@@ -188,11 +192,12 @@ public void validate(GroovyLog.Msg msg) {
@Nullable @Override @RecipeBuilderRegistrationMethod
public IResonatorRecipe register() {
if (!validate()) return null;
- IResonatorRecipe recipe = new ResonatorRecipe(input.get(0).getMatchingStacks()[0], output.get(0), energy, ownerTag)
- {
+ IResonatorRecipe recipe = new ResonatorRecipe(input.get(0).getMatchingStacks()[0], output.get(0), energy, ownerTag) {
@Override
- public String getRequirementText() { return requirementText == null ? "" : requirementText; }
+ public String getRequirementText() {
+ return requirementText == null ? "" : requirementText;
+ }
@Override
public boolean shouldProgress(TileEntity resonator, int frequency, ItemStack input) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeMutations.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeMutations.java
index fb3b627bc..bb0bd1fe1 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeMutations.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeMutations.java
@@ -35,7 +35,9 @@ public void onReload() {
}
@Override @GroovyBlacklist
- public boolean isEnabled() { return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.APICULTURE); }
+ public boolean isEnabled() {
+ return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.APICULTURE);
+ }
public IBeeMutation add(AlleleBeeSpecies output, AlleleBeeSpecies a, AlleleBeeSpecies b, double chance,
@Nullable Function requirement) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeProduce.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeProduce.java
index e2bd883ea..1d8422afc 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeProduce.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/BeeProduce.java
@@ -43,7 +43,9 @@ public boolean removeFromBee(BeeProduct product) {
}
@Override @GroovyBlacklist
- public boolean isEnabled() { return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.APICULTURE); }
+ public boolean isEnabled() {
+ return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.APICULTURE);
+ }
public BeeProduct add(AlleleBeeSpecies species, ItemStack output, float chance, boolean specialty) {
BeeProduct product = new BeeProduct(species, output, chance, specialty);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Carpenter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Carpenter.java
index 7d3abbdd7..af2181c08 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Carpenter.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Carpenter.java
@@ -182,7 +182,9 @@ public RecipeBuilder shape(String... pattern) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Carpenter recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Carpenter recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Centrifuge.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Centrifuge.java
index cbf2a64da..344026a62 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Centrifuge.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Centrifuge.java
@@ -104,7 +104,9 @@ public RecipeBuilder output(ItemStack output) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Centrifuge recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Centrifuge recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/CharcoalPile.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/CharcoalPile.java
index 04bac6d9e..f82741cbe 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/CharcoalPile.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/CharcoalPile.java
@@ -23,7 +23,9 @@ public void onReload() {
}
@Override @GroovyBlacklist
- public boolean isEnabled() { return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.CHARCOAL); }
+ public boolean isEnabled() {
+ return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.CHARCOAL);
+ }
public ICharcoalPileWall add(IBlockState state, int amount) {
if (!isEnabled() || state == null) return null;
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Fermenter.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Fermenter.java
index bfb0055de..4918ce5f3 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Fermenter.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Fermenter.java
@@ -112,7 +112,9 @@ public RecipeBuilder modifier(float modifier) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Fermenter recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Fermenter recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ForestryRegistry.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ForestryRegistry.java
index 8f317a436..21f7bd899 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ForestryRegistry.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ForestryRegistry.java
@@ -20,5 +20,7 @@ public ForestryRegistry(@Nullable Collection aliases) {
}
@Override @GroovyBlacklist @ApiStatus.Internal
- public boolean isEnabled() { return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.FACTORY); }
+ public boolean isEnabled() {
+ return ForestryAPI.moduleManager.isModuleEnabled("forestry", ForestryModuleUids.FACTORY);
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Moistener.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Moistener.java
index 5fbd159c5..65a118cc5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Moistener.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Moistener.java
@@ -88,7 +88,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Moistener recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Moistener recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Squeezer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Squeezer.java
index 38e6f810c..c38f7ab1e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Squeezer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Squeezer.java
@@ -108,7 +108,9 @@ public RecipeBuilder chance(float chance) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Squeezer recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Squeezer recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Still.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Still.java
index 7a21ac05f..0282826f5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Still.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/Still.java
@@ -85,7 +85,9 @@ public RecipeBuilder time(int time) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Still recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Still recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ThermionicFabricator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ThermionicFabricator.java
index 5bb007151..ba2abd988 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ThermionicFabricator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/forestry/ThermionicFabricator.java
@@ -146,7 +146,9 @@ public RecipeBuilder shape(String... pattern) {
}
@Override
- public String getErrorMsg() { return "Error adding Forestry Thermionic Fabricator recipe"; }
+ public String getErrorMsg() {
+ return "Error adding Forestry Thermionic Fabricator recipe";
+ }
@Override
public void validate(GroovyLog.Msg msg) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/Centrifuge.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/Centrifuge.java
index 5e578048b..502457f7a 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/Centrifuge.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/Centrifuge.java
@@ -56,8 +56,10 @@ public void removeByOutput(ItemStack... outputs) {
GroovyLog.msg("Error removing Industrialcraft 2 Centrifuge recipe").add("outputs must not be empty").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> recipe = iterator.next();
if (recipe.getOutput().size() == outputs.length) {
@@ -81,8 +83,10 @@ public void removeByInput(ItemStack input) {
GroovyLog.msg("Error removing Industrialcraft 2 Centrifuge recipe").add("input must not be empty").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(input)) {
iterator.remove();
@@ -92,8 +96,10 @@ public void removeByInput(ItemStack input) {
}
public void removeAll() {
- for (Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
iterator.remove();
addBackup(rec);
@@ -105,8 +111,10 @@ public SimpleObjectStream>> st
}
private boolean remove(MachineRecipe> recipe, boolean backup) {
- for (Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.centrifuge.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(recipe.getInput().getInputs().get(0))) {
iterator.remove();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/IC2.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/IC2.java
index edf80ba04..5e5e380c1 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/IC2.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/IC2.java
@@ -71,7 +71,9 @@ public IC2() {
public static boolean isExp() {
for (ModContainer container : Loader.instance().getActiveModList()) {
- if ("ic2".equals(container.getModId())) { return container.getMetadata().version.contains("ex"); }
+ if ("ic2".equals(container.getModId())) {
+ return container.getMetadata().version.contains("ex");
+ }
}
return false;
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/MetalFormer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/MetalFormer.java
index 3e9709f96..20664e646 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/MetalFormer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/MetalFormer.java
@@ -61,15 +61,19 @@ public boolean remove(MachineRecipe> recipe)
}
public void removeByOutput(int type, ItemStack output) {
- if (GroovyLog.msg("Error removing Industrialcraft 2 Metal Former recipe").add(type < 0 || type > 2,
+ if (
+ GroovyLog.msg("Error removing Industrialcraft 2 Metal Former recipe").add(type < 0 || type > 2,
() -> "type must be between 0-2").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return;
}
- for (Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (ItemStack.areItemStacksEqual((ItemStack) rec.getOutput().toArray()[0], output)) {
iterator.remove();
@@ -79,15 +83,19 @@ public void removeByOutput(int type, ItemStack output) {
}
public void removeByInput(int type, ItemStack input) {
- if (GroovyLog.msg("Error removing Industrialcraft 2 Metal Former recipe").add(type < 0 || type > 2,
+ if (
+ GroovyLog.msg("Error removing Industrialcraft 2 Metal Former recipe").add(type < 0 || type > 2,
() -> "type must be between 0-2").add(
IngredientHelper.isEmpty(input),
() -> "input must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return;
}
- for (Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(input)) {
iterator.remove();
@@ -101,8 +109,10 @@ public void removeAll(int type) {
GroovyLog.msg("Error removing Industrialcraft 2 Metal Former recipe").add("type must be between 0-2").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
iterator.remove();
addBackup(new MetalFormerRecipe(type, rec));
@@ -110,8 +120,10 @@ public void removeAll(int type) {
}
private boolean remove(int type, MachineRecipe> recipe, boolean backup) {
- for (Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = getManager(type).getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(recipe.getInput().getInputs().get(0))) {
iterator.remove();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/OreWasher.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/OreWasher.java
index eeb63f610..b7b0c0494 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/OreWasher.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/OreWasher.java
@@ -60,8 +60,10 @@ public void removeByOutput(ItemStack... outputs) {
GroovyLog.msg("Error removing Industrialcraft 2 Ore Washer recipe").add("outputs must not be empty").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> recipe = iterator.next();
if (recipe.getOutput().size() == outputs.length) {
@@ -85,8 +87,10 @@ public void removeByInput(ItemStack input) {
GroovyLog.msg("Error removing Industrialcraft 2 Ore Washer recipe").add("input must not be empty").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(input)) {
iterator.remove();
@@ -96,8 +100,10 @@ public void removeByInput(ItemStack input) {
}
public void removeAll() {
- for (Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
iterator.remove();
addBackup(rec);
@@ -105,8 +111,10 @@ public void removeAll() {
}
private boolean remove(MachineRecipe> recipe, boolean backup) {
- for (Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.oreWashing.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(recipe.getInput().getInputs().get(0))) {
iterator.remove();
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/RecipeInput.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/RecipeInput.java
index 7b6ef86cb..dc3759154 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/RecipeInput.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/RecipeInput.java
@@ -23,8 +23,12 @@ public boolean matches(ItemStack itemStack) {
}
@Override
- public int getAmount() { return this.ingredient.getAmount(); }
+ public int getAmount() {
+ return this.ingredient.getAmount();
+ }
@Override
- public List getInputs() { return Arrays.asList(this.ingredient.getMatchingStacks()); }
+ public List getInputs() {
+ return Arrays.asList(this.ingredient.getMatchingStacks());
+ }
}
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Canner.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Canner.java
index 8905ebff4..809896887 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Canner.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Canner.java
@@ -33,11 +33,13 @@ public void onReload() {
}
public CanningRecipe addCanning(ItemStack output, IIngredient input, ItemStack container) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Canner Canning recipe").add(IngredientHelper.isEmpty(output),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Canner Canning recipe").add(IngredientHelper.isEmpty(output),
() -> "output must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
CanningRecipe recipe = new CanningRecipe(RecipeType.CANNING_RECIPE).setOutput(output).setInput(input).setContainer(
@@ -48,8 +50,10 @@ public CanningRecipe addCanning(ItemStack output, IIngredient input, ItemStack c
}
public CanningRecipe registerItemEffect(int id, IIngredient input) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Canner Item Effect recipe").add(id < 0, () -> "id must not be negative")
- .add(IngredientHelper.isEmpty(input), () -> "input must not be empty").error().postIfNotEmpty()) {
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Canner Item Effect recipe").add(id < 0, () -> "id must not be negative")
+ .add(IngredientHelper.isEmpty(input), () -> "input must not be empty").error().postIfNotEmpty()
+ ) {
return null;
}
CanningRecipe recipe = new CanningRecipe(RecipeType.ITEM_EFFECT).setInt(id).setInput(input);
@@ -59,11 +63,13 @@ public CanningRecipe registerItemEffect(int id, IIngredient input) {
}
public CanningRecipe registerFuelValue(IIngredient ingredient, int value) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Canner Fuel Value").add(IngredientHelper.isEmpty(ingredient),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Canner Fuel Value").add(IngredientHelper.isEmpty(ingredient),
() -> "ingredient must not be empty").add(
value <= 0,
() -> "value must be higher than zero")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
CanningRecipe recipe = new CanningRecipe(RecipeType.FUEL_VALUE).setInt(value).setInput(ingredient);
@@ -73,11 +79,13 @@ public CanningRecipe registerFuelValue(IIngredient ingredient, int value) {
}
public CanningRecipe registerFuelValue(IIngredient ingredient, int value, float value1) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Canner Fuel Value").add(IngredientHelper.isEmpty(ingredient),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Canner Fuel Value").add(IngredientHelper.isEmpty(ingredient),
() -> "ingredient must not be empty").add(
value <= 0,
() -> "value must be higher than zero")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
CanningRecipe recipe = new CanningRecipe(RecipeType.FUEL_VALUE).setInt(value).setInput(ingredient).setFloat(value1);
@@ -169,8 +177,10 @@ public void removeAllItemEffect() {
}
public boolean removeAllRepair() {
- for (Map.Entry>>> entry : ClassicRecipes.canningMachine.getRepairMap()
- .entrySet()) {
+ for (
+ Map.Entry>>> entry : ClassicRecipes.canningMachine.getRepairMap()
+ .entrySet()
+ ) {
for (Tuple> tuple : entry.getValue()) {
CanningRecipe recipe = new CanningRecipe(RecipeType.REPAIR).setDamageItem(entry.getKey()).setMeta(tuple
.getFirst())
@@ -191,8 +201,10 @@ public boolean removeCanning(ItemStack container) {
.post();
return false;
}
- for (Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
- .entrySet()) {
+ for (
+ Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
+ .entrySet()
+ ) {
if (ItemStack.areItemStacksEqual(entry.getKey(), container)) {
for (Tuple tuple : entry.getValue()) {
CanningRecipe recipe = new CanningRecipe(RecipeType.CANNING_RECIPE).setContainer(container).setInput(
@@ -211,15 +223,19 @@ public boolean removeCanning(ItemStack container) {
}
public void removeCanningByInputs(ItemStack input, ItemStack container) {
- if (GroovyLog.msg("Error removing Industrialcraft 2 Canning Machine recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error removing Industrialcraft 2 Canning Machine recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(container),
() -> "container must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return;
}
- for (Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
- .entrySet()) {
+ for (
+ Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
+ .entrySet()
+ ) {
if (ItemStack.areItemStacksEqual(entry.getKey(), container)) {
for (Tuple tuple : entry.getValue()) {
if (tuple.getFirst().matches(input)) {
@@ -241,8 +257,10 @@ public void removeCanningByOutput(ItemStack output) {
.post();
return;
}
- for (Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
- .entrySet()) {
+ for (
+ Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
+ .entrySet()
+ ) {
for (Tuple tuple : entry.getValue()) {
if (ItemStack.areItemStacksEqual(tuple.getSecond(), output)) {
CanningRecipe recipe = new CanningRecipe(RecipeType.CANNING_RECIPE).setContainer(entry.getKey()).setInput(
@@ -257,8 +275,10 @@ public void removeCanningByOutput(ItemStack output) {
}
public void removeAllCanning() {
- for (Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
- .entrySet()) {
+ for (
+ Map.Entry>> entry : ClassicRecipes.canningMachine.getCanningMap()
+ .entrySet()
+ ) {
for (Tuple tuple : entry.getValue()) {
CanningRecipe recipe = new CanningRecipe(RecipeType.CANNING_RECIPE).setContainer(entry.getKey().copy()).setInput(
new ItemsIngredient(new ArrayList<>(tuple.getFirst()
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicCompressor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicCompressor.java
index a24618f4f..8bbad8d6c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicCompressor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicCompressor.java
@@ -32,11 +32,13 @@ public void onReload() {
@Override
public MachineRecipe> add(IIngredient input, ItemStack output) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Compressor recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Compressor recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
MachineRecipe> recipe = new MachineRecipe<>(new RecipeInput(input), Collections
@@ -51,11 +53,13 @@ public MachineRecipe> add(IIngredient input,
}
public MachineRecipe> add(IIngredient input, ItemStack output, float xp) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Compressor recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Compressor recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
if (xp < 0) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicElectrolyzer.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicElectrolyzer.java
index 3ff08e8f3..ab046b136 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicElectrolyzer.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicElectrolyzer.java
@@ -25,11 +25,13 @@ public void onReload() {
}
public ElectrolyzerRecipe addBoth(ItemStack output, IIngredient input, int energy) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()) {
+ .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()
+ ) {
return null;
}
ElectrolyzerRecipe recipe = new ElectrolyzerRecipe(RecipeType.BOTH, input, output, energy);
@@ -39,11 +41,13 @@ public ElectrolyzerRecipe addBoth(ItemStack output, IIngredient input, int energ
}
public ElectrolyzerRecipe addCharge(ItemStack output, IIngredient input, int energy) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()) {
+ .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()
+ ) {
return null;
}
ElectrolyzerRecipe recipe = new ElectrolyzerRecipe(RecipeType.CHARGE, input, output, energy);
@@ -53,11 +57,13 @@ public ElectrolyzerRecipe addCharge(ItemStack output, IIngredient input, int ene
}
public ElectrolyzerRecipe addDischarge(ItemStack output, IIngredient input, int energy) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Electrolyzer recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()) {
+ .add(energy <= 0, () -> "energy must be higher than zero").error().postIfNotEmpty()
+ ) {
return null;
}
ElectrolyzerRecipe recipe = new ElectrolyzerRecipe(RecipeType.DISCHARGE, input, output, energy);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicExtractor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicExtractor.java
index fdcb349e9..247534da2 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicExtractor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicExtractor.java
@@ -38,11 +38,13 @@ public void add(MachineRecipe> recipe) {
@Override
public MachineRecipe> add(IIngredient input, ItemStack output) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Extractor recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Extractor recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
MachineRecipe> recipe = new MachineRecipe<>(new RecipeInput(input), Collections
@@ -52,11 +54,13 @@ public MachineRecipe> add(IIngredient input,
}
public MachineRecipe> add(IIngredient input, ItemStack output, float xp) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Extractor recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Extractor recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
if (xp < 0) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicMacerator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicMacerator.java
index 0760a7984..ed589fd7c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicMacerator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicMacerator.java
@@ -31,11 +31,13 @@ public void onReload() {
@Override
public MachineRecipe> add(ItemStack output, IIngredient input) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Macerator recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Macerator recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
MachineRecipe> recipe = new MachineRecipe<>(new RecipeInput(input), Collections
@@ -45,11 +47,13 @@ public MachineRecipe> add(ItemStack output,
}
public MachineRecipe> add(ItemStack output, IIngredient input, float xp) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Macerator recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Macerator recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
IngredientHelper.isEmpty(output),
() -> "output must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
if (xp < 0) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicScrapbox.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicScrapbox.java
index df44598aa..ed62faf8e 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicScrapbox.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/ClassicScrapbox.java
@@ -26,10 +26,12 @@ public void add(IClassicScrapBoxManager.IDrop drop) {
@Override
public void add(ItemStack stack, float chance) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Scrapbox recipe").add(IngredientHelper.isEmpty(stack),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Scrapbox recipe").add(IngredientHelper.isEmpty(stack),
() -> "stack must not be emtpy").add(chance <= 0,
() -> "chance must be higher than zero")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return;
}
ClassicRecipes.scrapboxDrops.addDrop(stack, chance);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/LiquidFuelGenerator.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/LiquidFuelGenerator.java
index 0e766d566..da45ac3c5 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/LiquidFuelGenerator.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/LiquidFuelGenerator.java
@@ -32,10 +32,12 @@ public void add(LFGRecipe recipe) {
}
public LFGRecipe add(FluidStack fluid, int burnTicks, float euPerTick) {
- if (GroovyLog.msg("Error adding Fluid Generator recipe").add(IngredientHelper.isEmpty(fluid),
+ if (
+ GroovyLog.msg("Error adding Fluid Generator recipe").add(IngredientHelper.isEmpty(fluid),
() -> "fluid must not be empty").add(burnTicks <= 0,
() -> "burnTicks must be higher than zero")
- .add(euPerTick <= 0, () -> "euPerTick must be higher than zero").error().postIfNotEmpty()) {
+ .add(euPerTick <= 0, () -> "euPerTick must be higher than zero").error().postIfNotEmpty()
+ ) {
return null;
}
LFGRecipe recipe = new LFGRecipe(fluid, burnTicks, euPerTick);
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/RareEarthExtractor.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/RareEarthExtractor.java
index 47f60d00e..8477d817b 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/RareEarthExtractor.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/RareEarthExtractor.java
@@ -26,11 +26,13 @@ public void add(IRareEarthExtractorRecipeList.EarthEntry entry) {
}
public void add(IIngredient input, float value) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Rare Earth Extractor recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Rare Earth Extractor recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(
value <= 0,
() -> "value must be higher than zero")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return;
}
for (ItemStack stack : input.getMatchingStacks()) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Sawmill.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Sawmill.java
index 44ceeb5d6..f01aadd0f 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Sawmill.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/classic/Sawmill.java
@@ -24,11 +24,13 @@ public void onReload() {
}
public IMachineRecipeList.RecipeEntry add(ItemStack output, IIngredient input) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Sawmill recipe").add(IngredientHelper.isEmpty(output),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Sawmill recipe").add(IngredientHelper.isEmpty(output),
() -> "output must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
IMachineRecipeList.RecipeEntry entry = new IMachineRecipeList.RecipeEntry(new RecipeInput(input), new MachineOutput(null,
@@ -40,11 +42,13 @@ public IMachineRecipeList.RecipeEntry add(ItemStack output, IIngredient input) {
}
public IMachineRecipeList.RecipeEntry add(ItemStack output, IIngredient input, float xp) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Sawmill recipe").add(IngredientHelper.isEmpty(output),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Sawmill recipe").add(IngredientHelper.isEmpty(output),
() -> "output must not be empty").add(
IngredientHelper.isEmpty(input),
() -> "input must not be empty")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
if (xp < 0) {
diff --git a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/exp/BlastFurnace.java b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/exp/BlastFurnace.java
index 5d6981adf..1aeca401c 100644
--- a/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/exp/BlastFurnace.java
+++ b/src/main/java/com/cleanroommc/groovyscript/compat/mods/ic2/exp/BlastFurnace.java
@@ -33,11 +33,13 @@ public void add(MachineRecipe> recipe) {
}
public MachineRecipe> add(IIngredient input, List output) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Blast Furnace recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Blast Furnace recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(IC2
.isNull(output),
() -> "output must not be null")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
MachineRecipe> recipe = new MachineRecipe<>(new RecipeInput(input), output);
@@ -46,11 +48,13 @@ public MachineRecipe> add(IIngredient input,
}
public MachineRecipe> add(IIngredient input, List output, NBTTagCompound tag) {
- if (GroovyLog.msg("Error adding Industrialcraft 2 Blast Furnace recipe").add(IngredientHelper.isEmpty(input),
+ if (
+ GroovyLog.msg("Error adding Industrialcraft 2 Blast Furnace recipe").add(IngredientHelper.isEmpty(input),
() -> "input must not be empty").add(IC2
.isNull(output),
() -> "output must not be null")
- .error().postIfNotEmpty()) {
+ .error().postIfNotEmpty()
+ ) {
return null;
}
MachineRecipe> recipe = new MachineRecipe<>(new RecipeInput(input), output, tag);
@@ -72,8 +76,10 @@ public void removeByOutput(ItemStack... outputs) {
.post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> recipe = iterator.next();
if (recipe.getOutput().size() == outputs.length) {
@@ -97,8 +103,10 @@ public void removeByInput(ItemStack input) {
GroovyLog.msg("Error removing Industrialcraft 2 Blast Furnace recipe").add("input must not be empty").error().post();
return;
}
- for (Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
if (rec.getInput().matches(input)) {
iterator.remove();
@@ -108,8 +116,10 @@ public void removeByInput(ItemStack input) {
}
public void removeAll() {
- for (Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe> rec = iterator.next();
iterator.remove();
addBackup(rec);
@@ -117,8 +127,10 @@ public void removeAll() {
}
private boolean remove(MachineRecipe> recipe, boolean backup) {
- for (Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
- .iterator(); iterator.hasNext();) {
+ for (
+ Iterator extends MachineRecipe>> iterator = Recipes.blastfurnace.getRecipes()
+ .iterator(); iterator.hasNext();
+ ) {
MachineRecipe