Added the basic gui, block and tile for the centrifuge

This commit is contained in:
Modmuss50 2015-04-13 18:40:13 +01:00
parent 2b0fd80def
commit bd357e0a2c
8 changed files with 159 additions and 5 deletions

View file

@ -0,0 +1,35 @@
package techreborn.tiles;
import ic2.api.energy.prefab.BasicSink;
import net.minecraft.nbt.NBTTagCompound;
import techreborn.util.Inventory;
public class TileCentrifuge extends TileMachineBase {
public BasicSink energy;
public Inventory inventory = new Inventory(6, "TileCentrifuge", 64);
public TileCentrifuge() {
//TODO check values, + config
energy = new BasicSink(this, 100000, 1);
}
@Override
public void updateEntity() {
super.updateEntity();
energy.updateEntity();
}
@Override
public void readFromNBT(NBTTagCompound tagCompound) {
super.readFromNBT(tagCompound);
inventory.readFromNBT(tagCompound);
}
@Override
public void writeToNBT(NBTTagCompound tagCompound) {
super.writeToNBT(tagCompound);
inventory.writeToNBT(tagCompound);
}
}