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/forestry/HANDLER_FR.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/forestry/HANDLER_FR.java')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/forestry/HANDLER_FR.java | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/HANDLER_FR.java b/src/main/java/gtPlusPlus/xmod/forestry/HANDLER_FR.java index 493d50490a..1ad9fbad13 100644 --- a/src/main/java/gtPlusPlus/xmod/forestry/HANDLER_FR.java +++ b/src/main/java/gtPlusPlus/xmod/forestry/HANDLER_FR.java @@ -1,5 +1,12 @@ package gtPlusPlus.xmod.forestry; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + +import net.minecraft.block.Block; +import net.minecraft.item.ItemStack; +import net.minecraft.world.World; + import binnie.extratrees.genetics.ExtraTreeSpecies; import cpw.mods.fml.common.Optional; import forestry.api.arboriculture.EnumGermlingType; @@ -12,11 +19,6 @@ import gtPlusPlus.xmod.forestry.bees.items.FR_ItemRegistry; import gtPlusPlus.xmod.forestry.bees.recipe.FR_Gregtech_Recipes; import gtPlusPlus.xmod.forestry.bees.registry.GTPP_Bees; import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.production.GregtechMetaTileEntityTreeFarm; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import net.minecraft.block.Block; -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; public class HANDLER_FR { @@ -42,8 +44,8 @@ public class HANDLER_FR { } } - public static boolean createBlockBreakParticles( - final World world, final int x, final int y, final int z, final Block block) { + public static boolean createBlockBreakParticles(final World world, final int x, final int y, final int z, + final Block block) { if (LoadedMods.Forestry) { createBlockBreakParticles_INTERNAL(world, x, y, z, block); } @@ -51,8 +53,8 @@ public class HANDLER_FR { } @Optional.Method(modid = "Forestry") - private static void createBlockBreakParticles_INTERNAL( - final World world, final int x, final int y, final int z, final Block block) { + private static void createBlockBreakParticles_INTERNAL(final World world, final int x, final int y, final int z, + final Block block) { if (LoadedMods.Forestry) { Class oClass; try { @@ -70,11 +72,8 @@ public class HANDLER_FR { int.class); mParticles.invoke(oProxy, world, x, y, z, block, 0); } - } catch (SecurityException - | IllegalAccessException - | IllegalArgumentException - | InvocationTargetException e) { - } + } catch (SecurityException | IllegalAccessException | IllegalArgumentException + | InvocationTargetException e) {} } } @@ -88,13 +87,13 @@ public class HANDLER_FR { aLog = TreeManager.woodItemAccess.getLog(woodType, false); GregtechMetaTileEntityTreeFarm.sLogCache.put(value.getUID(), aLog); - GregtechMetaTileEntityTreeFarm.sLogCache.put( - value.getUID() + "fireproof", TreeManager.woodItemAccess.getLog(woodType, true)); + GregtechMetaTileEntityTreeFarm.sLogCache + .put(value.getUID() + "fireproof", TreeManager.woodItemAccess.getLog(woodType, true)); } else { aLog = ReflectionUtils.getField(value, "vanillaWood"); - GregtechMetaTileEntityTreeFarm.sLogCache.put( - value.getUID(), ReflectionUtils.getField(value, "vanillaWood")); + GregtechMetaTileEntityTreeFarm.sLogCache + .put(value.getUID(), ReflectionUtils.getField(value, "vanillaWood")); } GregtechMetaTileEntityTreeFarm.addFakeRecipeToNEI(aSaplingStack, aLog); @@ -104,8 +103,8 @@ public class HANDLER_FR { @Optional.Method(modid = "ExtraTrees") private static void mapExtraTreesSaplingToLog() { for (ExtraTreeSpecies value : ExtraTreeSpecies.values()) { - ItemStack aSaplingStack = TreeManager.treeRoot.getMemberStack( - TreeManager.treeRoot.templateAsIndividual(value.getTemplate()), 0); + ItemStack aSaplingStack = TreeManager.treeRoot + .getMemberStack(TreeManager.treeRoot.templateAsIndividual(value.getTemplate()), 0); ItemStack aLog = null; if (value.getLog() != null) { aLog = value.getLog().getItemStack(); |