Remove unused code in Condenser.
This commit is contained in:
@@ -73,7 +73,6 @@ public class CondenserBlockEntity extends AEBaseInvBlockEntity implements IConfi
|
|||||||
private final AppEngInternalInventory storageSlot = new AppEngInternalInventory(this, 1);
|
private final AppEngInternalInventory storageSlot = new AppEngInternalInventory(this, 1);
|
||||||
// This is a FixedItemInv implementation to satisfy the UI, which is slot based
|
// This is a FixedItemInv implementation to satisfy the UI, which is slot based
|
||||||
private final CondenseItemHandler internalInputSlot = new CondenseItemHandler();
|
private final CondenseItemHandler internalInputSlot = new CondenseItemHandler();
|
||||||
private final CondenseItemInsertable externalItemInput = new CondenseItemInsertable();
|
|
||||||
private final FluidInsertable externalFluidInput = new FluidHandler();
|
private final FluidInsertable externalFluidInput = new FluidHandler();
|
||||||
private final MEHandler meHandler = new MEHandler();
|
private final MEHandler meHandler = new MEHandler();
|
||||||
|
|
||||||
@@ -215,16 +214,6 @@ public class CondenserBlockEntity extends AEBaseInvBlockEntity implements IConfi
|
|||||||
to.offer(meHandler);
|
to.offer(meHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CondenseItemInsertable implements ItemInsertable {
|
|
||||||
@Override
|
|
||||||
public ItemStack attemptInsertion(ItemStack itemStack, Simulation simulation) {
|
|
||||||
if (simulation == Simulation.ACTION && !itemStack.isEmpty()) {
|
|
||||||
CondenserBlockEntity.this.addPower(itemStack.getCount());
|
|
||||||
}
|
|
||||||
return ItemStack.EMPTY;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class CondenseItemHandler implements FixedItemInv {
|
private class CondenseItemHandler implements FixedItemInv {
|
||||||
@Override
|
@Override
|
||||||
public int getSlotCount() {
|
public int getSlotCount() {
|
||||||
@@ -243,7 +232,7 @@ public class CondenserBlockEntity extends AEBaseInvBlockEntity implements IConfi
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean setInvStack(int i, ItemStack itemStack, Simulation simulation) {
|
public boolean setInvStack(int i, ItemStack itemStack, Simulation simulation) {
|
||||||
if (simulation == Simulation.ACTION) {
|
if (simulation == Simulation.ACTION && !itemStack.isEmpty()) {
|
||||||
CondenserBlockEntity.this.addPower(itemStack.getCount());
|
CondenserBlockEntity.this.addPower(itemStack.getCount());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user