mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-23 15:48:34 +01:00
Moved field declaration back
This commit is contained in:
parent
a9989ed94e
commit
7937f55639
5 changed files with 5 additions and 10 deletions
|
@ -31,14 +31,13 @@ import net.minecraftforge.energy.IEnergyStorage;
|
||||||
|
|
||||||
public class TileEntityAtomicReconstructor extends TileEntityInventoryBase implements IEnergyDisplay, IAtomicReconstructor{
|
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;
|
public int counter;
|
||||||
private int currentTime;
|
private int currentTime;
|
||||||
private int oldEnergy;
|
private int oldEnergy;
|
||||||
|
|
||||||
public TileEntityAtomicReconstructor(){
|
public TileEntityAtomicReconstructor(){
|
||||||
super(1, "reconstructor");
|
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){
|
public static void shootLaser(World world, double startX, double startY, double startZ, double endX, double endY, double endZ, Lens currentLens){
|
||||||
|
|
|
@ -27,7 +27,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class TileEntityCanolaPress extends TileEntityInventoryBase implements ISharingFluidHandler{
|
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){
|
public final FluidTank tank = new FluidTank(2*Util.BUCKET){
|
||||||
@Override
|
@Override
|
||||||
public boolean canFill(){
|
public boolean canFill(){
|
||||||
|
@ -41,7 +41,6 @@ public class TileEntityCanolaPress extends TileEntityInventoryBase implements IS
|
||||||
|
|
||||||
public TileEntityCanolaPress(){
|
public TileEntityCanolaPress(){
|
||||||
super(1, "canolaPress");
|
super(1, "canolaPress");
|
||||||
this.storage = new CustomEnergyStorage(ConfigIntValues.CANOLA_PRESS_ENERGY_CAPACITY.getValue(), ConfigIntValues.CANOLA_PRESS_ENERGY_RECEIVE.getValue(), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|
|
@ -23,12 +23,11 @@ import net.minecraftforge.energy.IEnergyStorage;
|
||||||
|
|
||||||
public class TileEntityDisplayStand extends TileEntityInventoryBase implements IEnergyDisplay{
|
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;
|
private int oldEnergy;
|
||||||
|
|
||||||
public TileEntityDisplayStand(){
|
public TileEntityDisplayStand(){
|
||||||
super(1, "displayStand");
|
super(1, "displayStand");
|
||||||
this.storage = new CustomEnergyStorage(ConfigIntValues.DISPLAY_STAND_ENERGY_CAPACITY.getValue(), ConfigIntValues.DISPLAY_STAND_ENERGY_RECEIVE.getValue(), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -26,12 +26,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class TileEntityEnergizer extends TileEntityInventoryBase{
|
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;
|
private int lastEnergy;
|
||||||
|
|
||||||
public TileEntityEnergizer(){
|
public TileEntityEnergizer(){
|
||||||
super(2, "energizer");
|
super(2, "energizer");
|
||||||
this.storage = new CustomEnergyStorage(ConfigIntValues.ENERGIZER_ENERGY_CAPACITY.getValue(), ConfigIntValues.ENERGIZER_ENERGY_RECEIVE.getValue(), 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -27,12 +27,11 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class TileEntityEnervator extends TileEntityInventoryBase implements ISharingEnergyProvider{
|
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;
|
private int lastEnergy;
|
||||||
|
|
||||||
public TileEntityEnervator(){
|
public TileEntityEnervator(){
|
||||||
super(2, "enervator");
|
super(2, "enervator");
|
||||||
this.storage = new CustomEnergyStorage(ConfigIntValues.ENERVATOR_ENERGY_CAPACITY.getValue(), 0, ConfigIntValues.ENERVATOR_ENERGY_SEND.getValue());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue