diff options
| author | Jason Mitchell <mitchej@gmail.com> | 2023-01-28 19:32:44 -0800 |
|---|---|---|
| committer | Jason Mitchell <mitchej@gmail.com> | 2023-01-28 19:32:44 -0800 |
| commit | 55f64675b42ac8d3c557cc850f78664bee006f6f (patch) | |
| tree | 2afd26dd3d5e6f763119bc192b57c66a1a075922 /src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java | |
| parent | 0f5dfd01b877b6a1019e0671b88d07974aae68c0 (diff) | |
| download | GT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.tar.gz GT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.tar.bz2 GT5-Unofficial-55f64675b42ac8d3c557cc850f78664bee006f6f.zip | |
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java')
| -rw-r--r-- | src/main/java/gtPlusPlus/xmod/reliquary/item/ReliquaryItems.java | 11 |
1 files changed, 6 insertions, 5 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; } |
