diff options
author | Jason Mitchell <mitchej@gmail.com> | 2023-01-30 10:56:42 -0800 |
---|---|---|
committer | Jason Mitchell <mitchej@gmail.com> | 2023-01-30 10:56:42 -0800 |
commit | 0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch) | |
tree | 1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/api/interfaces/metatileentity | |
parent | f8cc82edeb9810c45cba762d733a2c909a302faa (diff) | |
download | GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2 GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip |
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/metatileentity')
6 files changed, 104 insertions, 123 deletions
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java index 84c991ade9..76d8d082ef 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IConnectable.java @@ -4,6 +4,7 @@ package gregtech.api.interfaces.metatileentity; * For pipes, wires, and other MetaTiles which need to be decided whether they should connect to the block at each side. */ public interface IConnectable { + int NO_CONNECTION = 0b00000000; int CONNECTED_DOWN = 0b00000001; int CONNECTED_UP = 0b00000010; @@ -17,8 +18,8 @@ public interface IConnectable { int HAS_FOAM = 0b11000000; /** - * Try to connect to the Block at the specified side - * returns the connection state. Non-positive values for failed, others for succeeded. + * Try to connect to the Block at the specified side returns the connection state. Non-positive values for failed, + * others for succeeded. */ int connect(byte aSide); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java index bac9cffba0..d7574313ac 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IFluidLockable.java @@ -5,7 +5,7 @@ import net.minecraftforge.fluids.Fluid; /** * Implement this interface if your MetaTileEntity supports fluid lock mechanism. */ -@SuppressWarnings({"BooleanMethodIsAlwaysInverted"}) +@SuppressWarnings({ "BooleanMethodIsAlwaysInverted" }) public interface IFluidLockable { /** @@ -16,8 +16,8 @@ public interface IFluidLockable { String getLockedFluidName(); /** - * Set fluid lock state. - * Would be useful when you don't necessarily want to change mode when locked fluid is changed. + * Set fluid lock state. Would be useful when you don't necessarily want to change mode when locked fluid is + * changed. */ void lockFluid(boolean lock); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java index a1c00ebc97..fb7845cfd4 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMachineCallback.java @@ -1,6 +1,7 @@ package gregtech.api.interfaces.metatileentity; public interface IMachineCallback<Machinetype extends IMetaTileEntity> { + Machinetype getCallbackBase(); void setCallbackBase(Machinetype callback); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java index 0d1d52edb0..66c85be547 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -1,21 +1,9 @@ package gregtech.api.interfaces.metatileentity; -import com.gtnewhorizons.modularui.api.forge.ItemStackHandler; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -import gregtech.api.enums.Dyes; -import gregtech.api.interfaces.ITexture; -import gregtech.api.interfaces.modularui.IGetGUITextureSet; -import gregtech.api.interfaces.tileentity.IGearEnergyTileEntity; -import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -import gregtech.api.interfaces.tileentity.IGregtechWailaProvider; -import gregtech.api.interfaces.tileentity.IMachineBlockUpdateable; -import gregtech.api.objects.GT_ItemStack; -import gregtech.api.util.GT_Config; -import gregtech.api.util.GT_Util; import java.io.File; import java.util.ArrayList; import java.util.List; + import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.texture.IIconRegister; @@ -31,38 +19,40 @@ import net.minecraft.world.World; import net.minecraftforge.fluids.IFluidHandler; import net.minecraftforge.fluids.IFluidTank; +import com.gtnewhorizons.modularui.api.forge.ItemStackHandler; + +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import gregtech.api.enums.Dyes; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.modularui.IGetGUITextureSet; +import gregtech.api.interfaces.tileentity.IGearEnergyTileEntity; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.interfaces.tileentity.IGregtechWailaProvider; +import gregtech.api.interfaces.tileentity.IMachineBlockUpdateable; +import gregtech.api.objects.GT_ItemStack; +import gregtech.api.util.GT_Config; +import gregtech.api.util.GT_Util; + /** - * Warning, this Interface has just been made to be able to add multiple kinds of MetaTileEntities (Cables, Pipes, Transformers, but not the regular Blocks) + * Warning, this Interface has just been made to be able to add multiple kinds of MetaTileEntities (Cables, Pipes, + * Transformers, but not the regular Blocks) * <p/> * Don't implement this yourself and expect it to work. Extend @MetaTileEntity itself. */ -public interface IMetaTileEntity - extends ISidedInventory, - IFluidTank, - IFluidHandler, - IGearEnergyTileEntity, - IMachineBlockUpdateable, - IGregtechWailaProvider, - IGetGUITextureSet { +public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHandler, IGearEnergyTileEntity, + IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet { + /** * This determines the BaseMetaTileEntity belonging to this MetaTileEntity by using the Meta ID of the Block itself. * <p/> - * 0 = BaseMetaTileEntity, Wrench lvl 0 to dismantle - * 1 = BaseMetaTileEntity, Wrench lvl 1 to dismantle - * 2 = BaseMetaTileEntity, Wrench lvl 2 to dismantle - * 3 = BaseMetaTileEntity, Wrench lvl 3 to dismantle - * 4 = BaseMetaPipeEntity, Wrench lvl 0 to dismantle - * 5 = BaseMetaPipeEntity, Wrench lvl 1 to dismantle - * 6 = BaseMetaPipeEntity, Wrench lvl 2 to dismantle - * 7 = BaseMetaPipeEntity, Wrench lvl 3 to dismantle - * 8 = BaseMetaPipeEntity, Cutter lvl 0 to dismantle - * 9 = BaseMetaPipeEntity, Cutter lvl 1 to dismantle - * 10 = BaseMetaPipeEntity, Cutter lvl 2 to dismantle - * 11 = BaseMetaPipeEntity, Cutter lvl 3 to dismantle - * 12 = GT++ - * 13 = GT++ - * 14 = GT++ - * 15 = GT++ + * 0 = BaseMetaTileEntity, Wrench lvl 0 to dismantle 1 = BaseMetaTileEntity, Wrench lvl 1 to dismantle 2 = + * BaseMetaTileEntity, Wrench lvl 2 to dismantle 3 = BaseMetaTileEntity, Wrench lvl 3 to dismantle 4 = + * BaseMetaPipeEntity, Wrench lvl 0 to dismantle 5 = BaseMetaPipeEntity, Wrench lvl 1 to dismantle 6 = + * BaseMetaPipeEntity, Wrench lvl 2 to dismantle 7 = BaseMetaPipeEntity, Wrench lvl 3 to dismantle 8 = + * BaseMetaPipeEntity, Cutter lvl 0 to dismantle 9 = BaseMetaPipeEntity, Cutter lvl 1 to dismantle 10 = + * BaseMetaPipeEntity, Cutter lvl 2 to dismantle 11 = BaseMetaPipeEntity, Cutter lvl 3 to dismantle 12 = GT++ 13 = + * GT++ 14 = GT++ 15 = GT++ */ byte getTileEntityBaseType(); @@ -103,8 +93,8 @@ public interface IMetaTileEntity void loadNBTData(NBTTagCompound aNBT); /** - * Adds the NBT-Information to the ItemStack, when being dismanteled properly - * Used to store Machine specific Upgrade Data. + * Adds the NBT-Information to the ItemStack, when being dismanteled properly Used to store Machine specific Upgrade + * Data. */ void setItemNBT(NBTTagCompound aNBT); @@ -114,7 +104,8 @@ public interface IMetaTileEntity void onServerStart(); /** - * Called in the registered MetaTileEntity when the Server ticks a World the first time, to load things from the World Save + * Called in the registered MetaTileEntity when the Server ticks a World the first time, to load things from the + * World Save */ void onWorldLoad(File aSaveDirectory); @@ -124,14 +115,14 @@ public interface IMetaTileEntity void onWorldSave(File aSaveDirectory); /** - * Called to set Configuration values for this MetaTileEntity. - * Use aConfig.get(ConfigCategories.machineconfig, "MetaTileEntityName.Ability", DEFAULT_VALUE); to set the Values. + * Called to set Configuration values for this MetaTileEntity. Use aConfig.get(ConfigCategories.machineconfig, + * "MetaTileEntityName.Ability", DEFAULT_VALUE); to set the Values. */ void onConfigLoad(GT_Config aConfig); /** - * If a Cover of that Type can be placed on this Side. - * Also Called when the Facing of the Block Changes and a Cover is on said Side. + * If a Cover of that Type can be placed on this Side. Also Called when the Facing of the Block Changes and a Cover + * is on said Side. */ boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack); @@ -153,8 +144,8 @@ public interface IMetaTileEntity /** * When a Player rightclicks the Facing with a soldering iron. */ - boolean onSolderingToolRightClick( - byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, float aZ); + boolean onSolderingToolRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, + float aZ); /** * Called right before this Machine explodes @@ -167,21 +158,19 @@ public interface IMetaTileEntity void onFirstTick(IGregTechTileEntity aBaseMetaTileEntity); /** - * The Tick before all the generic handling happens, what gives a slightly faster reaction speed. - * Don't use this if you really don't need to. @onPostTick is better suited for ticks. - * This happens still after the Cover handling. + * The Tick before all the generic handling happens, what gives a slightly faster reaction speed. Don't use this if + * you really don't need to. @onPostTick is better suited for ticks. This happens still after the Cover handling. */ void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick); /** - * The Tick after all the generic handling happened. - * Recommended to use this like updateEntity. + * The Tick after all the generic handling happened. Recommended to use this like updateEntity. */ void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick); /** - * Called when this MetaTileEntity gets (intentionally) disconnected from the BaseMetaTileEntity. - * Doesn't get called when this thing is moved by Frames or similar hacks. + * Called when this MetaTileEntity gets (intentionally) disconnected from the BaseMetaTileEntity. Doesn't get called + * when this thing is moved by Frames or similar hacks. */ void inValidate(); @@ -232,11 +221,13 @@ public interface IMetaTileEntity boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack); /** - * @return if aIndex is a valid Slot. false for things like HoloSlots. Is used for determining if an Item is dropped upon Block destruction and for Inventory Access Management + * @return if aIndex is a valid Slot. false for things like HoloSlots. Is used for determining if an Item is dropped + * upon Block destruction and for Inventory Access Management */ boolean isValidSlot(int aIndex); - /** Check if the item at the specified index should be dropped + /** + * Check if the item at the specified index should be dropped * * @param index Index that will be checked * @return True if the item at the index should be dropped, else false @@ -269,17 +260,15 @@ public interface IMetaTileEntity boolean isAccessAllowed(EntityPlayer aPlayer); /** - * a Player rightclicks the Machine - * Sneaky rightclicks are not getting passed to this! + * a Player rightclicks the Machine Sneaky rightclicks are not getting passed to this! * * @return */ - boolean onRightclick( - IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, float aZ); + boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, byte aSide, float aX, float aY, + float aZ); /** - * a Player leftclicks the Machine - * Sneaky leftclicks are getting passed to this unlike with the rightclicks. + * a Player leftclicks the Machine Sneaky leftclicks are getting passed to this unlike with the rightclicks. */ void onLeftclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer); @@ -289,11 +278,12 @@ public interface IMetaTileEntity void onValueUpdate(byte aValue); /** - * return a small bit of Data, like a secondary Facing for example with this Function, for the Client. - * The BaseMetaTileEntity detects changes to this Value and will then send an Update. - * This is only for Information, which is visible as Texture to the outside. + * return a small bit of Data, like a secondary Facing for example with this Function, for the Client. The + * BaseMetaTileEntity detects changes to this Value and will then send an Update. This is only for Information, + * which is visible as Texture to the outside. * <p/> - * If you just want to have an Active/Redstone State then set the Active State inside the BaseMetaTileEntity instead. + * If you just want to have an Active/Redstone State then set the Active State inside the BaseMetaTileEntity + * instead. */ byte getUpdateData(); @@ -303,9 +293,8 @@ public interface IMetaTileEntity void receiveClientEvent(byte aEventID, byte aValue); /** - * Called to actually play the Sound. - * Do not insert Client/Server checks. That is already done for you. - * Do not use @playSoundEffect, Minecraft doesn't like that at all. Use @playSound instead. + * Called to actually play the Sound. Do not insert Client/Server checks. That is already done for you. Do not + * use @playSoundEffect, Minecraft doesn't like that at all. Use @playSound instead. */ void doSound(byte aIndex, double aX, double aY, double aZ); @@ -343,16 +332,16 @@ public interface IMetaTileEntity /** * If there should be a Lag Warning if something laggy happens during this Tick. * <p/> - * The Advanced Pump uses this to not cause the Lag Message, while it scans for all close Fluids. - * The Item Pipes and Retrievers neither send this Message, when scanning for Pipes. + * The Advanced Pump uses this to not cause the Lag Message, while it scans for all close Fluids. The Item Pipes and + * Retrievers neither send this Message, when scanning for Pipes. */ boolean doTickProfilingMessageDuringThisTick(); /** * returns the DebugLog */ - ArrayList<String> getSpecialDebugInfo( - IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel, ArrayList<String> aList); + ArrayList<String> getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel, + ArrayList<String> aList); /** * get a small Description @@ -370,16 +359,14 @@ public interface IMetaTileEntity * @param aSide is the Side of the Block * @param aFacing is the direction the Block is facing (or a Bitmask of all Connections in case of Pipes) * @param aColorIndex The Minecraft Color the Block is having - * @param aActive if the Machine is currently active (use this instead of calling mBaseMetaTileEntity.mActive!!!). Note: In case of Pipes this means if this Side is connected to something or not. - * @param aRedstone if the Machine is currently outputting a RedstoneSignal (use this instead of calling mBaseMetaTileEntity.mRedstone!!!) + * @param aActive if the Machine is currently active (use this instead of calling + * mBaseMetaTileEntity.mActive!!!). Note: In case of Pipes this means if this Side is connected + * to something or not. + * @param aRedstone if the Machine is currently outputting a RedstoneSignal (use this instead of calling + * mBaseMetaTileEntity.mRedstone!!!) */ - ITexture[] getTexture( - IGregTechTileEntity aBaseMetaTileEntity, - byte aSide, - byte aFacing, - byte aColorIndex, - boolean aActive, - boolean aRedstone); + ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, + boolean aActive, boolean aRedstone); /** * The Textures used for the Item rendering. Return null if you want the regular 3D Block Rendering. @@ -387,8 +374,8 @@ public interface IMetaTileEntity // public ITexture[] getItemTexture(ItemStack aStack); /** - * Register Icons here. This gets called when the Icons get initialized by the Base Block - * Best is you put your Icons in a static Array for quick and easy access without relying on the MetaTileList. + * Register Icons here. This gets called when the Icons get initialized by the Base Block Best is you put your Icons + * in a static Array for quick and easy access without relying on the MetaTileList. * * @param aBlockIconRegister The Block Icon Register */ @@ -441,14 +428,8 @@ public interface IMetaTileEntity boolean allowGeneralRedstoneOutput(); - void addCollisionBoxesToList( - World aWorld, - int aX, - int aY, - int aZ, - AxisAlignedBB inputAABB, - List<AxisAlignedBB> outputAABB, - Entity collider); + void addCollisionBoxesToList(World aWorld, int aX, int aY, int aZ, AxisAlignedBB inputAABB, + List<AxisAlignedBB> outputAABB, Entity collider); AxisAlignedBB getCollisionBoundingBoxFromPool(World aWorld, int aX, int aY, int aZ); @@ -466,9 +447,9 @@ public interface IMetaTileEntity boolean shouldJoinIc2Enet(); /** - * The Machine Update, which is called when the Machine needs an Update of its Parts. - * I suggest to wait 1-5 seconds before actually checking the Machine Parts. - * RP-Frames could for example cause Problems when you instacheck the Machine Parts. + * The Machine Update, which is called when the Machine needs an Update of its Parts. I suggest to wait 1-5 seconds + * before actually checking the Machine Parts. RP-Frames could for example cause Problems when you instacheck the + * Machine Parts. * * just do stuff since we are already in meta tile... */ diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java index 6b83ab4dba..62df2e713f 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityCable.java @@ -2,12 +2,14 @@ package gregtech.api.interfaces.metatileentity; import java.util.ArrayList; import java.util.HashSet; + import net.minecraft.tileentity.TileEntity; public interface IMetaTileEntityCable extends IMetaTileEntity { + @Deprecated - long transferElectricity( - byte aSide, long aVoltage, long aAmperage, ArrayList<TileEntity> aAlreadyPassedTileEntityList); + long transferElectricity(byte aSide, long aVoltage, long aAmperage, + ArrayList<TileEntity> aAlreadyPassedTileEntityList); default long transferElectricity(byte aSide, long aVoltage, long aAmperage, HashSet<TileEntity> aAlreadyPassedSet) { return transferElectricity(aSide, aVoltage, aAmperage, new ArrayList<>(aAlreadyPassedSet)); diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java index 5375ea85ee..b60088a41b 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java @@ -2,12 +2,14 @@ package gregtech.api.interfaces.metatileentity; import static gregtech.api.enums.GT_Values.ALL_VALID_SIDES; +import java.util.Map; + import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.BaseMetaPipeEntity; import gregtech.api.util.GT_Utility; -import java.util.Map; public interface IMetaTileEntityItemPipe extends IMetaTileEntity { + /** * @return if this Pipe can still be used. */ @@ -36,9 +38,9 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { boolean insertItemStackIntoTileEntity(Object aSender, byte aSide); /** - * Can be used to make flow control Pipes, like Redpowers Restriction Tubes. - * Every normal Pipe returns a Value of 32768, so you can easily insert lower Numbers to set Routing priorities. - * Negative Numbers to "suck" Items into a certain direction are also possible. + * Can be used to make flow control Pipes, like Redpowers Restriction Tubes. Every normal Pipe returns a Value of + * 32768, so you can easily insert lower Numbers to set Routing priorities. Negative Numbers to "suck" Items into a + * certain direction are also possible. */ int getStepSize(); @@ -46,15 +48,12 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { * Utility for the Item Network */ class Util { + /** * @return a List of connected Item Pipes */ - public static Map<IMetaTileEntityItemPipe, Long> scanPipes( - IMetaTileEntityItemPipe aMetaTileEntity, - Map<IMetaTileEntityItemPipe, Long> aMap, - long aStep, - boolean aSuckItems, - boolean aIgnoreCapacity) { + public static Map<IMetaTileEntityItemPipe, Long> scanPipes(IMetaTileEntityItemPipe aMetaTileEntity, + Map<IMetaTileEntityItemPipe, Long> aMap, long aStep, boolean aSuckItems, boolean aIgnoreCapacity) { aStep += aMetaTileEntity.getStepSize(); if (aIgnoreCapacity || aMetaTileEntity.pipeCapacityCheck()) if (aMap.get(aMetaTileEntity) == null || aMap.get(aMetaTileEntity) > aStep) { @@ -63,12 +62,13 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { byte oppositeSide; for (byte side : ALL_VALID_SIDES) { if (aMetaTileEntity instanceof IConnectable - && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side)) continue; + && !((IConnectable) aMetaTileEntity).isConnectedAtSide(side)) + continue; oppositeSide = GT_Utility.getOppositeSide(side); if (aSuckItems) { if (aBaseMetaTileEntity.getCoverInfoAtSide(side).letsItemsIn(-2)) { - final IGregTechTileEntity tItemPipe = - aBaseMetaTileEntity.getIGregTechTileEntityAtSide(side); + final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity + .getIGregTechTileEntityAtSide(side); if (aBaseMetaTileEntity.getColorization() >= 0) { final byte tColor = tItemPipe.getColorization(); if (tColor >= 0 && tColor != aBaseMetaTileEntity.getColorization()) { @@ -78,9 +78,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { if (tItemPipe instanceof BaseMetaPipeEntity) { final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity(); if (tMetaTileEntity instanceof IMetaTileEntityItemPipe - && tItemPipe - .getCoverInfoAtSide(oppositeSide) - .letsItemsOut(-2)) { + && tItemPipe.getCoverInfoAtSide(oppositeSide).letsItemsOut(-2)) { scanPipes( (IMetaTileEntityItemPipe) tMetaTileEntity, aMap, @@ -92,8 +90,8 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { } } else { if (aBaseMetaTileEntity.getCoverInfoAtSide(side).letsItemsOut(-2)) { - final IGregTechTileEntity tItemPipe = - aBaseMetaTileEntity.getIGregTechTileEntityAtSide(side); + final IGregTechTileEntity tItemPipe = aBaseMetaTileEntity + .getIGregTechTileEntityAtSide(side); if (tItemPipe != null) { if (aBaseMetaTileEntity.getColorization() >= 0) { final byte tColor = tItemPipe.getColorization(); @@ -104,9 +102,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { if (tItemPipe instanceof BaseMetaPipeEntity) { final IMetaTileEntity tMetaTileEntity = tItemPipe.getMetaTileEntity(); if (tMetaTileEntity instanceof IMetaTileEntityItemPipe - && tItemPipe - .getCoverInfoAtSide(oppositeSide) - .letsItemsIn(-2)) { + && tItemPipe.getCoverInfoAtSide(oppositeSide).letsItemsIn(-2)) { scanPipes( (IMetaTileEntityItemPipe) tMetaTileEntity, aMap, |