Moved field declaration back

This commit is contained in:
OneEyeMaker 2017-09-27 07:22:13 +03:00
parent a9989ed94e
commit 7937f55639
5 changed files with 5 additions and 10 deletions

View file

@ -31,14 +31,13 @@ import net.minecraftforge.energy.IEnergyStorage;
public class TileEntityAtomicReconstructor extends TileEntityInventoryBase implements IEnergyDisplay, IAtomicReconstructor{
public final CustomEnergyStorage storage;
public final CustomEnergyStorage storage = new CustomEnergyStorage(ConfigIntValues.ATOMIC_RECONSTRUCTOR_ENERGY_CAPACITY.getValue(), ConfigIntValues.ATOMIC_RECONSTRUCTOR_ENERGY_RECEIVE.getValue(), 0);
public int counter;
private int currentTime;
private int oldEnergy;
public TileEntityAtomicReconstructor(){
super(1, "reconstructor");
this.storage = new CustomEnergyStorage(ConfigIntValues.ATOMIC_RECONSTRUCTOR_ENERGY_CAPACITY.getValue(), ConfigIntValues.ATOMIC_RECONSTRUCTOR_ENERGY_RECEIVE.getValue(), 0);
}
public static void shootLaser(World world, double startX, double startY, double startZ, double endX, double endY, double endZ, Lens currentLens){

View file

@ -27,7 +27,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class TileEntityCanolaPress extends TileEntityInventoryBase implements ISharingFluidHandler{
public final CustomEnergyStorage storage;
public final CustomEnergyStorage storage = new CustomEnergyStorage(ConfigIntValues.CANOLA_PRESS_ENERGY_CAPACITY.getValue(), ConfigIntValues.CANOLA_PRESS_ENERGY_RECEIVE.getValue(), 0);
public final FluidTank tank = new FluidTank(2*Util.BUCKET){
@Override
public boolean canFill(){
@ -41,7 +41,6 @@ public class TileEntityCanolaPress extends TileEntityInventoryBase implements IS
public TileEntityCanolaPress(){
super(1, "canolaPress");
this.storage = new CustomEnergyStorage(ConfigIntValues.CANOLA_PRESS_ENERGY_CAPACITY.getValue(), ConfigIntValues.CANOLA_PRESS_ENERGY_RECEIVE.getValue(), 0);
}
@SideOnly(Side.CLIENT)

View file

@ -23,12 +23,11 @@ import net.minecraftforge.energy.IEnergyStorage;
public class TileEntityDisplayStand extends TileEntityInventoryBase implements IEnergyDisplay{
public final CustomEnergyStorage storage;
public final CustomEnergyStorage storage = new CustomEnergyStorage(ConfigIntValues.DISPLAY_STAND_ENERGY_CAPACITY.getValue(), ConfigIntValues.DISPLAY_STAND_ENERGY_RECEIVE.getValue(), 0);
private int oldEnergy;
public TileEntityDisplayStand(){
super(1, "displayStand");
this.storage = new CustomEnergyStorage(ConfigIntValues.DISPLAY_STAND_ENERGY_CAPACITY.getValue(), ConfigIntValues.DISPLAY_STAND_ENERGY_RECEIVE.getValue(), 0);
}
@Override

View file

@ -26,12 +26,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class TileEntityEnergizer extends TileEntityInventoryBase{
public final CustomEnergyStorage storage;
public final CustomEnergyStorage storage = new CustomEnergyStorage(ConfigIntValues.ENERGIZER_ENERGY_CAPACITY.getValue(), ConfigIntValues.ENERGIZER_ENERGY_RECEIVE.getValue(), 0);
private int lastEnergy;
public TileEntityEnergizer(){
super(2, "energizer");
this.storage = new CustomEnergyStorage(ConfigIntValues.ENERGIZER_ENERGY_CAPACITY.getValue(), ConfigIntValues.ENERGIZER_ENERGY_RECEIVE.getValue(), 0);
}
@Override

View file

@ -27,12 +27,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class TileEntityEnervator extends TileEntityInventoryBase implements ISharingEnergyProvider{
public final CustomEnergyStorage storage;
public final CustomEnergyStorage storage = new CustomEnergyStorage(ConfigIntValues.ENERVATOR_ENERGY_CAPACITY.getValue(), 0, ConfigIntValues.ENERVATOR_ENERGY_SEND.getValue());
private int lastEnergy;
public TileEntityEnervator(){
super(2, "enervator");
this.storage = new CustomEnergyStorage(ConfigIntValues.ENERVATOR_ENERGY_CAPACITY.getValue(), 0, ConfigIntValues.ENERVATOR_ENERGY_SEND.getValue());
}
@Override