Added the basic gui, block and tile for the centrifuge
This commit is contained in:
parent
2b0fd80def
commit
bd357e0a2c
8 changed files with 159 additions and 5 deletions
35
src/main/java/techreborn/tiles/TileCentrifuge.java
Normal file
35
src/main/java/techreborn/tiles/TileCentrifuge.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue