mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Added push/pull caps to all machines
This commit is contained in:
parent
309733f096
commit
58b90f66c3
22 changed files with 24 additions and 24 deletions
|
@ -30,7 +30,7 @@ import net.minecraft.world.World;
|
|||
public class TileEntityAtomicReconstructor extends TileEntityInventoryBase implements ICustomEnergyReceiver, IEnergyDisplay, IAtomicReconstructor{
|
||||
|
||||
public static final int ENERGY_USE = 1000;
|
||||
public final EnergyStorage storage = new EnergyStorage(300000);
|
||||
public final EnergyStorage storage = new EnergyStorage(300000, 5000);
|
||||
public int counter;
|
||||
private int currentTime;
|
||||
private int oldEnergy;
|
||||
|
|
|
@ -27,7 +27,7 @@ import java.util.List;
|
|||
|
||||
public class TileEntityBioReactor extends TileEntityInventoryBase implements ISharingEnergyProvider{
|
||||
|
||||
public final EnergyStorage storage = new EnergyStorage(200000);
|
||||
public final EnergyStorage storage = new EnergyStorage(200000, 800);
|
||||
|
||||
public int burnTime;
|
||||
public int maxBurnTime;
|
||||
|
|
|
@ -30,7 +30,7 @@ public class TileEntityCanolaPress extends TileEntityInventoryBase implements IC
|
|||
public static final int PRODUCE = 80;
|
||||
public static final int ENERGY_USE = 35;
|
||||
private static final int TIME = 30;
|
||||
public final EnergyStorage storage = new EnergyStorage(40000);
|
||||
public final EnergyStorage storage = new EnergyStorage(40000, 100);
|
||||
public final FluidTank tank = new FluidTank(2*Util.BUCKET){
|
||||
@Override
|
||||
public boolean canFill(){
|
||||
|
|
|
@ -22,7 +22,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||
public class TileEntityCoalGenerator extends TileEntityInventoryBase implements ISharingEnergyProvider{
|
||||
|
||||
public static final int PRODUCE = 30;
|
||||
public final EnergyStorage storage = new EnergyStorage(60000);
|
||||
public final EnergyStorage storage = new EnergyStorage(60000, 80);
|
||||
public int maxBurnTime;
|
||||
public int currentBurnTime;
|
||||
private int lastEnergy;
|
||||
|
|
|
@ -35,12 +35,12 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements
|
|||
public static final int SLOT_COFFEE_BEANS = 0;
|
||||
public static final int SLOT_INPUT = 1;
|
||||
public static final int SLOT_OUTPUT = 2;
|
||||
public static final int CACHE_USE = 15;
|
||||
public static final int CACHE_USE = 35;
|
||||
public static final int ENERGY_USED = 150;
|
||||
public static final int WATER_USE = 500;
|
||||
public static final int COFFEE_CACHE_MAX_AMOUNT = 300;
|
||||
private static final int TIME_USED = 500;
|
||||
public final EnergyStorage storage = new EnergyStorage(300000);
|
||||
public final EnergyStorage storage = new EnergyStorage(300000, 250);
|
||||
public final FluidTank tank = new FluidTank(4*Util.BUCKET){
|
||||
@Override
|
||||
public boolean canDrain(){
|
||||
|
|
|
@ -28,7 +28,7 @@ public class TileEntityDirectionalBreaker extends TileEntityInventoryBase implem
|
|||
|
||||
public static final int RANGE = 8;
|
||||
public static final int ENERGY_USE = 5;
|
||||
public final EnergyStorage storage = new EnergyStorage(10000);
|
||||
public final EnergyStorage storage = new EnergyStorage(10000, 20);
|
||||
private int lastEnergy;
|
||||
private int currentTime;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import net.minecraft.util.EnumFacing;
|
|||
|
||||
public class TileEntityDisplayStand extends TileEntityInventoryBase implements IEnergyDisplay, ICustomEnergyReceiver{
|
||||
|
||||
public final EnergyStorage storage = new EnergyStorage(800000);
|
||||
public final EnergyStorage storage = new EnergyStorage(80000, 1000);
|
||||
private int oldEnergy;
|
||||
|
||||
public TileEntityDisplayStand(){
|
||||
|
|
|
@ -25,7 +25,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||
|
||||
public class TileEntityEnergizer extends TileEntityInventoryBase implements ICustomEnergyReceiver{
|
||||
|
||||
public final EnergyStorage storage = new EnergyStorage(500000);
|
||||
public final EnergyStorage storage = new EnergyStorage(50000, 1000);
|
||||
private int lastEnergy;
|
||||
|
||||
public TileEntityEnergizer(){
|
||||
|
|
|
@ -25,7 +25,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||
|
||||
public class TileEntityEnervator extends TileEntityInventoryBase implements ISharingEnergyProvider{
|
||||
|
||||
public final EnergyStorage storage = new EnergyStorage(500000);
|
||||
public final EnergyStorage storage = new EnergyStorage(50000, 1000);
|
||||
private int lastEnergy;
|
||||
|
||||
public TileEntityEnervator(){
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.List;
|
|||
public class TileEntityFarmer extends TileEntityInventoryBase implements ICustomEnergyReceiver{
|
||||
|
||||
public static final int USE_PER_OPERATION = 1500;
|
||||
public final EnergyStorage storage = new EnergyStorage(100000);
|
||||
public final EnergyStorage storage = new EnergyStorage(100000, 1000);
|
||||
|
||||
private int waitTime;
|
||||
private int checkX;
|
||||
|
|
|
@ -24,7 +24,7 @@ import net.minecraft.world.World;
|
|||
public class TileEntityFireworkBox extends TileEntityBase implements ICustomEnergyReceiver, IEnergyDisplay{
|
||||
|
||||
public static final int USE_PER_SHOT = 300;
|
||||
public final EnergyStorage storage = new EnergyStorage(20000);
|
||||
public final EnergyStorage storage = new EnergyStorage(20000, 200);
|
||||
private int timeUntilNextFirework;
|
||||
private int oldEnergy;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ public class TileEntityFurnaceDouble extends TileEntityInventoryBase implements
|
|||
public static final int SLOT_OUTPUT_2 = 3;
|
||||
public static final int ENERGY_USE = 25;
|
||||
private static final int SMELT_TIME = 80;
|
||||
public final EnergyStorage storage = new EnergyStorage(30000);
|
||||
public final EnergyStorage storage = new EnergyStorage(30000, 80);
|
||||
public int firstSmeltTime;
|
||||
public int secondSmeltTime;
|
||||
public boolean isAutoSplit;
|
||||
|
|
|
@ -19,7 +19,7 @@ import net.minecraft.util.math.BlockPos;
|
|||
public class TileEntityFurnaceSolar extends TileEntityBase implements ISharingEnergyProvider, IEnergyDisplay{
|
||||
|
||||
public static final int PRODUCE = 8;
|
||||
public final EnergyStorage storage = new EnergyStorage(30000);
|
||||
public final EnergyStorage storage = new EnergyStorage(30000, 100);
|
||||
private int oldEnergy;
|
||||
|
||||
public TileEntityFurnaceSolar(){
|
||||
|
|
|
@ -36,7 +36,7 @@ public class TileEntityGrinder extends TileEntityInventoryBase implements ICusto
|
|||
public static final int SLOT_OUTPUT_2_1 = 4;
|
||||
public static final int SLOT_OUTPUT_2_2 = 5;
|
||||
public static final int ENERGY_USE = 40;
|
||||
public final EnergyStorage storage = new EnergyStorage(60000);
|
||||
public final EnergyStorage storage = new EnergyStorage(60000, 100);
|
||||
public int firstCrushTime;
|
||||
public int secondCrushTime;
|
||||
public boolean isDouble;
|
||||
|
|
|
@ -25,7 +25,7 @@ public class TileEntityHeatCollector extends TileEntityBase implements ISharingE
|
|||
|
||||
public static final int ENERGY_PRODUCE = 40;
|
||||
public static final int BLOCKS_NEEDED = 4;
|
||||
public final EnergyStorage storage = new EnergyStorage(30000);
|
||||
public final EnergyStorage storage = new EnergyStorage(30000, 80);
|
||||
private int oldEnergy;
|
||||
|
||||
public TileEntityHeatCollector(){
|
||||
|
|
|
@ -24,8 +24,8 @@ public class TileEntityItemRepairer extends TileEntityInventoryBase implements I
|
|||
|
||||
public static final int SLOT_INPUT = 0;
|
||||
public static final int SLOT_OUTPUT = 1;
|
||||
public static final int ENERGY_USE = 5000;
|
||||
public final EnergyStorage storage = new EnergyStorage(300000);
|
||||
public static final int ENERGY_USE = 3500;
|
||||
public final EnergyStorage storage = new EnergyStorage(300000, 6000);
|
||||
public int nextRepairTick;
|
||||
private int lastEnergy;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ public class TileEntityLavaFactoryController extends TileEntityBase implements I
|
|||
public static final int HAS_LAVA = 1;
|
||||
public static final int HAS_AIR = 2;
|
||||
public static final int ENERGY_USE = 150000;
|
||||
public final EnergyStorage storage = new EnergyStorage(3000000);
|
||||
public final EnergyStorage storage = new EnergyStorage(300000, 2000);
|
||||
private int currentWorkTime;
|
||||
private int oldEnergy;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public class TileEntityLeafGenerator extends TileEntityBase implements ISharingE
|
|||
|
||||
public static final int RANGE = 7;
|
||||
public static final int ENERGY_PRODUCED = 300;
|
||||
public final EnergyStorage storage = new EnergyStorage(35000);
|
||||
public final EnergyStorage storage = new EnergyStorage(35000, 450);
|
||||
private int nextUseCounter;
|
||||
private int oldEnergy;
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ public class TileEntityMiner extends TileEntityInventoryBase implements ICustomE
|
|||
|
||||
public static final int ENERGY_USE_PER_BLOCK = 1500;
|
||||
public static final int DEFAULT_RANGE = 2;
|
||||
public final EnergyStorage storage = new EnergyStorage(200000);
|
||||
public final EnergyStorage storage = new EnergyStorage(200000, 2000);
|
||||
public int layerAt = -1;
|
||||
public boolean onlyMineOres;
|
||||
private int oldLayerAt;
|
||||
|
|
|
@ -25,7 +25,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||
|
||||
public class TileEntityOilGenerator extends TileEntityBase implements ISharingEnergyProvider, ISharingFluidHandler{
|
||||
|
||||
public final EnergyStorage storage = new EnergyStorage(50000);
|
||||
public final EnergyStorage storage = new EnergyStorage(50000, 150);
|
||||
public final FluidTank tank = new FluidTank(2*Util.BUCKET){
|
||||
@Override
|
||||
public boolean canDrain(){
|
||||
|
|
|
@ -27,7 +27,7 @@ import java.util.UUID;
|
|||
public class TileEntityPlayerInterface extends TileEntityInventoryBase implements ICustomEnergyReceiver, IEnergyDisplay{
|
||||
|
||||
public static final int DEFAULT_RANGE = 32;
|
||||
private final EnergyStorage storage = new EnergyStorage(30000);
|
||||
private final EnergyStorage storage = new EnergyStorage(30000, 50);
|
||||
public UUID connectedPlayer;
|
||||
public String playerName;
|
||||
private int oldEnergy;
|
||||
|
|
|
@ -24,7 +24,7 @@ public class TileEntityShockSuppressor extends TileEntityBase implements ICustom
|
|||
public static final int USE_PER = 300;
|
||||
public static final int RANGE = 5;
|
||||
|
||||
public EnergyStorage storage = new EnergyStorage(300000);
|
||||
public EnergyStorage storage = new EnergyStorage(300000, 400);
|
||||
private int oldEnergy;
|
||||
|
||||
public TileEntityShockSuppressor(){
|
||||
|
|
Loading…
Reference in a new issue