From 2db8e30b1d2151fdde5d08a6c06aef55f0c397d2 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Fri, 27 Jan 2017 11:32:28 +0300 Subject: License, readme and stuff --- ihl/crop_harvestors/BlowerTileEntity.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'ihl/crop_harvestors/BlowerTileEntity.java') diff --git a/ihl/crop_harvestors/BlowerTileEntity.java b/ihl/crop_harvestors/BlowerTileEntity.java index 1c06f6c..e26632b 100644 --- a/ihl/crop_harvestors/BlowerTileEntity.java +++ b/ihl/crop_harvestors/BlowerTileEntity.java @@ -4,7 +4,6 @@ import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; -import java.util.Random; import java.util.Set; import cpw.mods.fml.relauncher.Side; @@ -34,7 +33,6 @@ import ic2.core.block.TileEntityInventory; import ic2.core.block.invslot.InvSlot; import ic2.core.block.invslot.InvSlotUpgrade; import ic2.core.block.invslot.InvSlot.Access; -import ic2.core.network.NetworkManager; import ic2.core.upgrade.IUpgradableBlock; import ic2.core.upgrade.UpgradableProperty; import ihl.IHLMod; @@ -52,16 +50,13 @@ public class BlowerTileEntity extends TileEntityInventory implements IEnergySink private double energyConsume=5D; private int defaultAirSpeedBase=100; public int airSpeedBase=100; - private boolean shouldCalculateAirFlow=true; private int sCAFCount=0; public boolean addedToEnergyNet = false; - private boolean hasEntityInFlow=false; - private ArrayList aszlist = new ArrayList(); + private ArrayList aszlist = new ArrayList(); public final InvSlotUpgrade upgradeSlot; public final IHLInvSlotDischarge dischargeSlot; public int updateChecksum=-1; private final float lambda=0.00001F; - private Random rand = new Random(); public int operationRange=-1; public int lastOperationRange=0; @@ -254,7 +249,8 @@ public class BlowerTileEntity extends TileEntityInventory implements IEnergySink } - @Override + @SuppressWarnings("unchecked") + @Override public void updateEntityServer() { @@ -650,12 +646,7 @@ public class BlowerTileEntity extends TileEntityInventory implements IEnergySink return false; } } - - private boolean isCNE(int x,int y,int z,int x1,int y1,int z1) - { - return x!=x1||y!=y1||z!=z1; - } - + private boolean isAirPassable(int x,int y,int z) { Block block = worldObj.getBlock(x,y,z); -- cgit v1.2.3