diff options
author | Dream-Master <dream-master@gmx.net> | 2020-03-17 22:21:40 +0100 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2020-03-17 22:21:40 +0100 |
commit | 0f6b03f927b2c482100b2ba46964db72c96156a0 (patch) | |
tree | 141bab113db4dbd76f6b3701d876f1c8e3f28b20 /src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java | |
parent | 28ed289c626555dda9f369780b28651a8c5f442e (diff) | |
parent | 5959633bc9eea56859e4e569c2aa8b8a427e5ea2 (diff) | |
download | GT5-Unofficial-0f6b03f927b2c482100b2ba46964db72c96156a0.tar.gz GT5-Unofficial-0f6b03f927b2c482100b2ba46964db72c96156a0.tar.bz2 GT5-Unofficial-0f6b03f927b2c482100b2ba46964db72c96156a0.zip |
Merge branch 'Refactor' into Bees
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java index 7187ccb04b..b61fe99904 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntityItemPipe.java @@ -10,12 +10,12 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { /**
* @return if this Pipe can still be used.
*/
- public boolean pipeCapacityCheck();
+ boolean pipeCapacityCheck();
/**
* @return if this Pipe can still be used.
*/
- public boolean incrementTransferCounter(int aIncrement);
+ boolean incrementTransferCounter(int aIncrement);
/**
* Sends an ItemStack from aSender to the adjacent Blocks.
@@ -23,7 +23,7 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { * @param aSender the BaseMetaTileEntity sending the Stack.
* @return if it was able to send something
*/
- public boolean sendItemStack(Object aSender);
+ boolean sendItemStack(Object aSender);
/**
* Executes the Sending Code for inserting Stacks into the TileEntities.
@@ -32,19 +32,19 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { * @param aSide the Side of the PIPE facing the TileEntity.
* @return if this Side was allowed to Output into the Block.
*/
- public boolean insertItemStackIntoTileEntity(Object aSender, byte aSide);
+ 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.
*/
- public int getStepSize();
+ int getStepSize();
/**
* Utility for the Item Network
*/
- public static class Util {
+ class Util {
/**
* @return a List of connected Item Pipes
*/
@@ -55,7 +55,8 @@ public interface IMetaTileEntityItemPipe extends IMetaTileEntity { IGregTechTileEntity aBaseMetaTileEntity = aMetaTileEntity.getBaseMetaTileEntity();
aMap.put(aMetaTileEntity, aStep);
for (byte i = 0, j = 0; i < 6; i++) {
- if (aMetaTileEntity instanceof IConnectable && !((IConnectable) aMetaTileEntity).isConnectedAtSide(i)) continue;
+ if (aMetaTileEntity instanceof IConnectable && !((IConnectable) aMetaTileEntity).isConnectedAtSide(i))
+ continue;
j = GT_Utility.getOppositeSide(i);
if (aSuckItems) {
if (aBaseMetaTileEntity.getCoverBehaviorAtSide(i).letsItemsIn(i, aBaseMetaTileEntity.getCoverIDAtSide(i), aBaseMetaTileEntity.getCoverDataAtSide(i), -2, aBaseMetaTileEntity)) {
|