diff options
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/reliquary')
3 files changed, 18 insertions, 20 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java b/src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java index 27505892d1..8dbf5d60b7 100644 --- a/src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java +++ b/src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java @@ -1,27 +1,28 @@ package gtPlusPlus.xmod.reliquary.item; -import gtPlusPlus.core.util.reflect.ReflectionUtils; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; + import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; +import gtPlusPlus.core.util.reflect.ReflectionUtils; + public class ReliquaryItems { private static Class<?> CLASS_MAIN = ReflectionUtils.getClass("xreliquary.Reliquary"); private static Field FIELD_CONTENT = ReflectionUtils.getField(CLASS_MAIN, "CONTENT"); private static Object OBJECT_CONTENT = ReflectionUtils.getFieldValue(FIELD_CONTENT); - private static Method METHOD_GETITEM = - ReflectionUtils.getMethod(OBJECT_CONTENT, "getItem", new Class[] {String.class}); + private static Method METHOD_GETITEM = ReflectionUtils + .getMethod(OBJECT_CONTENT, "getItem", new Class[] { String.class }); public static Item getItem(String name) { try { return (Item) METHOD_GETITEM.invoke(OBJECT_CONTENT, name); - } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { - } + } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {} return null; } diff --git a/src/main/java/gtPlusPlus/xmod/reliquary/util/AlkahestRecipeWrapper.java b/src/main/java/gtPlusPlus/xmod/reliquary/util/AlkahestRecipeWrapper.java index 1418a8d086..2209afddc7 100644 --- a/src/main/java/gtPlusPlus/xmod/reliquary/util/AlkahestRecipeWrapper.java +++ b/src/main/java/gtPlusPlus/xmod/reliquary/util/AlkahestRecipeWrapper.java @@ -1,11 +1,14 @@ package gtPlusPlus.xmod.reliquary.util; -import gtPlusPlus.core.util.reflect.ReflectionUtils; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; + import net.minecraft.item.ItemStack; +import gtPlusPlus.core.util.reflect.ReflectionUtils; + public class AlkahestRecipeWrapper { + public ItemStack item = null; public int yield = 0; public int cost = 0; @@ -39,12 +42,8 @@ public class AlkahestRecipeWrapper { return r; } - } catch (NoSuchMethodException - | SecurityException - | InstantiationException - | IllegalAccessException - | IllegalArgumentException - | InvocationTargetException e) { + } catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException + | IllegalArgumentException | InvocationTargetException e) { // oops } return null; diff --git a/src/main/java/gtPlusPlus/xmod/reliquary/util/ReliquaryRecipeHandler.java b/src/main/java/gtPlusPlus/xmod/reliquary/util/ReliquaryRecipeHandler.java index c0f19fecbc..4a8d9cd3f3 100644 --- a/src/main/java/gtPlusPlus/xmod/reliquary/util/ReliquaryRecipeHandler.java +++ b/src/main/java/gtPlusPlus/xmod/reliquary/util/ReliquaryRecipeHandler.java @@ -2,6 +2,9 @@ package gtPlusPlus.xmod.reliquary.util; import static gtPlusPlus.core.lib.CORE.GTNH; +import net.minecraft.init.Items; +import net.minecraft.item.ItemStack; + import gregtech.api.enums.OrePrefixes; import gregtech.api.util.GT_ModHandler; import gtPlusPlus.api.objects.Logger; @@ -11,8 +14,6 @@ import gtPlusPlus.core.recipe.common.CI; import gtPlusPlus.core.util.minecraft.FluidUtils; import gtPlusPlus.core.util.minecraft.ItemUtils; import gtPlusPlus.xmod.reliquary.item.ReliquaryItems; -import net.minecraft.init.Items; -import net.minecraft.item.ItemStack; public class ReliquaryRecipeHandler { @@ -55,12 +56,9 @@ public class ReliquaryRecipeHandler { Logger.INFO("Added new recipe for Glowing Water."); } if (CORE.RA.addSixSlotAssemblingRecipe( - new ItemStack[] { - ItemUtils.simpleMetaStack(Items.ender_eye, 0, 32), - CI.getFieldGenerator(5, GTNH ? 8 : 4), - CI.getTieredComponent(OrePrefixes.plate, 5, GTNH ? 16 : 8), - CI.getEmitter(3, 20) - }, + new ItemStack[] { ItemUtils.simpleMetaStack(Items.ender_eye, 0, 32), + CI.getFieldGenerator(5, GTNH ? 8 : 4), + CI.getTieredComponent(OrePrefixes.plate, 5, GTNH ? 16 : 8), CI.getEmitter(3, 20) }, FluidUtils.getUUM(50), ReliquaryItems.emptyVoidTear(), 20 * 2000, |