Cleanup + remove some TODO's that dont apply anymore

This commit is contained in:
modmuss50 2019-08-20 15:15:26 +01:00
parent 6174506d6c
commit 6114f45d9b
10 changed files with 2 additions and 163 deletions

View file

@ -104,7 +104,6 @@ public class IronAlloyFurnaceBlockEntity extends MachineBaseBlockEntity
}
if (flag != this.burnTime > 0) {
flag1 = true;
// TODO sync on/off
}
}
if (flag1) {

View file

@ -57,7 +57,7 @@ public class IndustrialSawmillBlockEntity extends GenericMachineBlockEntity impl
super(TRBlockEntities.INDUSTRIAL_SAWMILL, "IndustrialSawmill", TechRebornConfig.industrialSawmillMaxInput, TechRebornConfig.industrialSawmillMaxEnergy, TRContent.Machine.INDUSTRIAL_SAWMILL.block, 6);
final int[] inputs = new int[] { 0, 1 };
final int[] outputs = new int[] { 2, 3, 4 };
this.inventory = new RebornInventory<>(7, "SawmillBlockEntity", 64, this, getInventoryAccess());
this.inventory = new RebornInventory<>(7, "SawmillBlockEntity", 64, this);
this.crafter = new RecipeCrafter(ModRecipes.INDUSTRIAL_SAWMILL, this, 1, 3, this.inventory, inputs, outputs);
this.tank = new Tank("SawmillBlockEntity", IndustrialSawmillBlockEntity.TANK_CAPACITY, this);
this.ticksSinceLastChange = 0;
@ -120,17 +120,6 @@ public class IndustrialSawmillBlockEntity extends GenericMachineBlockEntity impl
return tank;
}
private static IInventoryAccess<IndustrialSawmillBlockEntity> getInventoryAccess(){
return (slotID, stack, face, direction, blockEntity) -> {
if(direction == IInventoryAccess.AccessDirection.INSERT){
//TODO return if the stack can take fluids
//return stack.getCapability(CapabilityFluidHandler.FLUID_HANDLER_ITEM_CAPABILITY, null).isPresent();
}
return true;
};
}
// IContainerProvider
@Override
public BuiltContainer createContainer(int syncID, final PlayerEntity player) {

View file

@ -194,9 +194,7 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
ItemStack stack = inventory.getInvStack(j);
if (ingredient.method_8093(stack)) {
handleContainerItem(stack);
stack.decrement(1); // TODO is this right? or do I need
// to use it as an actull
// crafting grid
stack.decrement(1);
break;
}
}
@ -207,7 +205,6 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
if (output.isEmpty()) {
inventory.setInvStack(9, outputStack.copy());
} else {
// TODO use ouputStack in someway?
output.increment(recipe.getOutput().getCount());
}
return true;